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 TextFormatReturns the B3TextFormatwith the provided implementations.abstract BinaryFormatReturns theBinaryFormatwith the provided implementations.static PropagationComponentReturns an instance that contains no-op implementations for all the instances.abstract TextFormatReturns the TraceContextTextFormatwith the provided implementations.
-
Field Details
-
NOOP_PROPAGATION_COMPONENT
-
-
Constructor Details
-
PropagationComponent
public PropagationComponent()
-
-
Method Details
-
getBinaryFormat
Returns theBinaryFormatwith the provided implementations. If no implementation is provided then no-op implementation will be used.- Returns:
- the
BinaryFormatimplementation. - Since:
- 0.5
-
getB3Format
Returns the B3TextFormatwith the provided implementations. See b3-propagation for more information. If no implementation is provided then no-op implementation will be used.- Returns:
- the B3
TextFormatimplementation. - Since:
- 0.11.0
-
getTraceContextFormat
Returns the TraceContextTextFormatwith 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
TextFormatimplementation. - 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
-