Package io.opencensus.impllite.trace
Class TraceComponentImplLite
- java.lang.Object
-
- io.opencensus.trace.TraceComponent
-
- io.opencensus.impllite.trace.TraceComponentImplLite
-
public final class TraceComponentImplLite extends TraceComponent
Android-compatible implementation of theTraceComponent
.
-
-
Field Summary
Fields Modifier and Type Field Description private TraceComponentImplBase
traceComponentImplBase
-
Constructor Summary
Constructors Constructor Description TraceComponentImplLite()
Public constructor to be used with reflection loading.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Clock
getClock()
Returns theClock
with the provided implementation.ExportComponent
getExportComponent()
Returns theExportComponent
with the provided implementation.PropagationComponent
getPropagationComponent()
Returns thePropagationComponent
with the provided implementation.TraceConfig
getTraceConfig()
Returns theTraceConfig
with the provided implementation.Tracer
getTracer()
Returns theTracer
with the provided implementations.
-
-
-
Field Detail
-
traceComponentImplBase
private final TraceComponentImplBase traceComponentImplBase
-
-
Method Detail
-
getTracer
public Tracer getTracer()
Description copied from class:TraceComponent
Returns theTracer
with the provided implementations. If no implementation is provided then no-op implementations will be used.- Specified by:
getTracer
in classTraceComponent
- Returns:
- the
Tracer
implementation.
-
getPropagationComponent
public PropagationComponent getPropagationComponent()
Description copied from class:TraceComponent
Returns thePropagationComponent
with the provided implementation. If no implementation is provided then no-op implementation will be used.- Specified by:
getPropagationComponent
in classTraceComponent
- Returns:
- the
PropagationComponent
implementation.
-
getClock
public Clock getClock()
Description copied from class:TraceComponent
Returns theClock
with the provided implementation.- Specified by:
getClock
in classTraceComponent
- Returns:
- the
Clock
implementation.
-
getExportComponent
public ExportComponent getExportComponent()
Description copied from class:TraceComponent
Returns theExportComponent
with the provided implementation. If no implementation is provided then no-op implementations will be used.- Specified by:
getExportComponent
in classTraceComponent
- Returns:
- the
ExportComponent
implementation.
-
getTraceConfig
public TraceConfig getTraceConfig()
Description copied from class:TraceComponent
Returns theTraceConfig
with the provided implementation. If no implementation is provided then no-op implementations will be used.- Specified by:
getTraceConfig
in classTraceComponent
- Returns:
- the
TraceConfig
implementation.
-
-