Package io.opencensus.trace
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 Clock
getClock()
Returns theClock
with the provided implementation.abstract ExportComponent
Returns theExportComponent
with the provided implementation.abstract PropagationComponent
Returns thePropagationComponent
with the provided implementation.abstract TraceConfig
Returns theTraceConfig
with the provided implementation.abstract Tracer
Returns theTracer
with the provided implementations.(package private) static TraceComponent
Returns an instance that contains no-op implementations for all the instances.
-
Constructor Details
-
TraceComponent
public TraceComponent()
-
-
Method Details
-
getTracer
Returns theTracer
with the provided implementations. If no implementation is provided then no-op implementations will be used.- Returns:
- the
Tracer
implementation. - Since:
- 0.5
-
getPropagationComponent
Returns thePropagationComponent
with the provided implementation. If no implementation is provided then no-op implementation will be used.- Returns:
- the
PropagationComponent
implementation. - Since:
- 0.5
-
getClock
Returns theClock
with the provided implementation.- Returns:
- the
Clock
implementation. - Since:
- 0.5
-
getExportComponent
Returns theExportComponent
with the provided implementation. If no implementation is provided then no-op implementations will be used.- Returns:
- the
ExportComponent
implementation. - Since:
- 0.5
-
getTraceConfig
Returns theTraceConfig
with the provided implementation. If no implementation is provided then no-op implementations will be used.- Returns:
- the
TraceConfig
implementation. - 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.
-