Class PropagationComponentImpl
- java.lang.Object
-
- io.opencensus.trace.propagation.PropagationComponent
-
- io.opencensus.implcore.trace.propagation.PropagationComponentImpl
-
public class PropagationComponentImpl extends PropagationComponent
Implementation of thePropagationComponent.
-
-
Field Summary
Fields Modifier and Type Field Description private TextFormatb3Formatprivate BinaryFormatbinaryFormatprivate TextFormattraceContextFormat
-
Constructor Summary
Constructors Constructor Description PropagationComponentImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TextFormatgetB3Format()Returns the B3TextFormatwith the provided implementations.BinaryFormatgetBinaryFormat()Returns theBinaryFormatwith the provided implementations.TextFormatgetTraceContextFormat()Returns the TraceContextTextFormatwith the provided implementations.-
Methods inherited from class io.opencensus.trace.propagation.PropagationComponent
getNoopPropagationComponent
-
-
-
-
Field Detail
-
binaryFormat
private final BinaryFormat binaryFormat
-
b3Format
private final TextFormat b3Format
-
traceContextFormat
private final TextFormat traceContextFormat
-
-
Method Detail
-
getBinaryFormat
public BinaryFormat getBinaryFormat()
Description copied from class:PropagationComponentReturns theBinaryFormatwith the provided implementations. If no implementation is provided then no-op implementation will be used.- Specified by:
getBinaryFormatin classPropagationComponent- Returns:
- the
BinaryFormatimplementation.
-
getB3Format
public TextFormat getB3Format()
Description copied from class:PropagationComponentReturns the B3TextFormatwith the provided implementations. See b3-propagation for more information. If no implementation is provided then no-op implementation will be used.- Specified by:
getB3Formatin classPropagationComponent- Returns:
- the B3
TextFormatimplementation.
-
getTraceContextFormat
public TextFormat getTraceContextFormat()
Description copied from class:PropagationComponentReturns the TraceContextTextFormatwith the provided implementations. See w3c/distributed-tracing for more information. If no implementation is provided then no-op implementation will be used.- Specified by:
getTraceContextFormatin classPropagationComponent- Returns:
- the TraceContext
TextFormatimplementation.
-
-