Package io.opencensus.trace
Class TraceComponent.NoopTraceComponent
- java.lang.Object
-
- io.opencensus.trace.TraceComponent
-
- io.opencensus.trace.TraceComponent.NoopTraceComponent
-
- Enclosing class:
- TraceComponent
private static final class TraceComponent.NoopTraceComponent extends TraceComponent
-
-
Field Summary
Fields Modifier and Type Field Description private ExportComponent
noopExportComponent
-
Constructor Summary
Constructors Modifier Constructor Description private
NoopTraceComponent()
-
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.-
Methods inherited from class io.opencensus.trace.TraceComponent
newNoopTraceComponent
-
-
-
-
Field Detail
-
noopExportComponent
private final ExportComponent noopExportComponent
-
-
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.
-
-