Class TraceComponentImplBase
java.lang.Object
io.opencensus.implcore.trace.TraceComponentImplBase
Helper class to allow sharing the code for all the
TraceComponent implementations. This
class cannot use inheritance because in version 0.5.* the constructor of the
TraceComponent is package protected.
This can be changed back to inheritance when version 0.5.* is no longer supported.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Clockprivate final ExportComponentImplprivate final PropagationComponentprivate final TraceConfigprivate final Tracer -
Constructor Summary
ConstructorsConstructorDescriptionTraceComponentImplBase(Clock clock, RandomHandler randomHandler, EventQueue eventQueue) Creates a newTraceComponentImplBase. -
Method Summary
-
Field Details
-
exportComponent
-
propagationComponent
-
clock
-
traceConfig
-
tracer
-
-
Constructor Details
-
TraceComponentImplBase
Creates a newTraceComponentImplBase.- Parameters:
clock- the clock to use throughout tracing.randomHandler- the random number generator for generating trace and span IDs.eventQueue- the queue implementation.
-
-
Method Details
-
getTracer
-
getPropagationComponent
-
getClock
-
getExportComponent
-
getTraceConfig
-