Package io.opencensus.trace.propagation
Class PropagationComponent
java.lang.Object
io.opencensus.trace.propagation.PropagationComponent
- Direct Known Subclasses:
PropagationComponent.NoopPropagationComponent
,PropagationComponentImpl
Container class for all the supported propagation formats. Currently supports only Binary format
(see
BinaryFormat
) and B3 Text format (see TextFormat
) but more formats will be
added.- Since:
- 0.5
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract TextFormat
Returns the B3TextFormat
with the provided implementations.abstract BinaryFormat
Returns theBinaryFormat
with the provided implementations.static PropagationComponent
Returns an instance that contains no-op implementations for all the instances.abstract TextFormat
Returns the TraceContextTextFormat
with the provided implementations.
-
Field Details
-
NOOP_PROPAGATION_COMPONENT
-
-
Constructor Details
-
PropagationComponent
public PropagationComponent()
-
-
Method Details
-
getBinaryFormat
Returns theBinaryFormat
with the provided implementations. If no implementation is provided then no-op implementation will be used.- Returns:
- the
BinaryFormat
implementation. - Since:
- 0.5
-
getB3Format
Returns the B3TextFormat
with the provided implementations. See b3-propagation for more information. If no implementation is provided then no-op implementation will be used.- Returns:
- the B3
TextFormat
implementation. - Since:
- 0.11.0
-
getTraceContextFormat
Returns the TraceContextTextFormat
with the provided implementations. See w3c/distributed-tracing for more information. If no implementation is provided then no-op implementation will be used.- Returns:
- the TraceContext
TextFormat
implementation. - Since:
- 0.16.0
-
getNoopPropagationComponent
Returns an instance that contains no-op implementations for all the instances.- Returns:
- an instance that contains no-op implementations for all the instances.
- Since:
- 0.5
-