Package io.opencensus.impl.trace
Class TraceComponentImpl
- java.lang.Object
-
- io.opencensus.trace.TraceComponent
-
- io.opencensus.impl.trace.TraceComponentImpl
-
public final class TraceComponentImpl extends TraceComponent
Java 7 and 8 implementation of theTraceComponent.
-
-
Field Summary
Fields Modifier and Type Field Description private TraceComponentImplBasetraceComponentImplBase
-
Constructor Summary
Constructors Constructor Description TraceComponentImpl()Public constructor to be used with reflection loading.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClockgetClock()Returns theClockwith the provided implementation.ExportComponentgetExportComponent()Returns theExportComponentwith the provided implementation.PropagationComponentgetPropagationComponent()Returns thePropagationComponentwith the provided implementation.TraceConfiggetTraceConfig()Returns theTraceConfigwith the provided implementation.TracergetTracer()Returns theTracerwith the provided implementations.
-
-
-
Field Detail
-
traceComponentImplBase
private final TraceComponentImplBase traceComponentImplBase
-
-
Method Detail
-
getTracer
public Tracer getTracer()
Description copied from class:TraceComponentReturns theTracerwith the provided implementations. If no implementation is provided then no-op implementations will be used.- Specified by:
getTracerin classTraceComponent- Returns:
- the
Tracerimplementation.
-
getPropagationComponent
public PropagationComponent getPropagationComponent()
Description copied from class:TraceComponentReturns thePropagationComponentwith the provided implementation. If no implementation is provided then no-op implementation will be used.- Specified by:
getPropagationComponentin classTraceComponent- Returns:
- the
PropagationComponentimplementation.
-
getClock
public Clock getClock()
Description copied from class:TraceComponentReturns theClockwith the provided implementation.- Specified by:
getClockin classTraceComponent- Returns:
- the
Clockimplementation.
-
getExportComponent
public ExportComponent getExportComponent()
Description copied from class:TraceComponentReturns theExportComponentwith the provided implementation. If no implementation is provided then no-op implementations will be used.- Specified by:
getExportComponentin classTraceComponent- Returns:
- the
ExportComponentimplementation.
-
getTraceConfig
public TraceConfig getTraceConfig()
Description copied from class:TraceComponentReturns theTraceConfigwith the provided implementation. If no implementation is provided then no-op implementations will be used.- Specified by:
getTraceConfigin classTraceComponent- Returns:
- the
TraceConfigimplementation.
-
-