Class TraceComponent
java.lang.Object
io.opencensus.trace.TraceComponent
- Direct Known Subclasses:
TraceComponent.NoopTraceComponent, TraceComponentImpl, TraceComponentImpl, TraceComponentImplLite, TraceComponentImplLite
Class that holds the implementation instances for
Tracer, PropagationComponent,
Clock, ExportComponent and TraceConfig.
Unless otherwise noted all methods (on component) results are cacheable.
- Since:
- 0.5
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ClockgetClock()Returns theClockwith the provided implementation.abstract ExportComponentReturns theExportComponentwith the provided implementation.abstract PropagationComponentReturns thePropagationComponentwith the provided implementation.abstract TraceConfigReturns theTraceConfigwith the provided implementation.abstract TracerReturns theTracerwith the provided implementations.(package private) static TraceComponentReturns an instance that contains no-op implementations for all the instances.
-
Constructor Details
-
TraceComponent
public TraceComponent()
-
-
Method Details
-
getTracer
-
getPropagationComponent
Returns thePropagationComponentwith the provided implementation. If no implementation is provided then no-op implementation will be used.- Returns:
- the
PropagationComponentimplementation. - Since:
- 0.5
-
getClock
-
getExportComponent
Returns theExportComponentwith the provided implementation. If no implementation is provided then no-op implementations will be used.- Returns:
- the
ExportComponentimplementation. - Since:
- 0.5
-
getTraceConfig
Returns theTraceConfigwith the provided implementation. If no implementation is provided then no-op implementations will be used.- Returns:
- the
TraceConfigimplementation. - Since:
- 0.5
-
newNoopTraceComponent
Returns an instance that contains no-op implementations for all the instances.- Returns:
- an instance that contains no-op implementations for all the instances.
-