Package io.opencensus.trace.export
Class ExportComponent.NoopExportComponent
- java.lang.Object
-
- io.opencensus.trace.export.ExportComponent
-
- io.opencensus.trace.export.ExportComponent.NoopExportComponent
-
- Enclosing class:
- ExportComponent
private static final class ExportComponent.NoopExportComponent extends ExportComponent
-
-
Field Summary
Fields Modifier and Type Field Description private SampledSpanStore
noopSampledSpanStore
-
Constructor Summary
Constructors Modifier Constructor Description private
NoopExportComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RunningSpanStore
getRunningSpanStore()
Returns theRunningSpanStore
that can be used to get useful debugging information about all the current active spans.SampledSpanStore
getSampledSpanStore()
Returns theSampledSpanStore
that can be used to get useful debugging information, such as latency based sampled spans, error based sampled spans.SpanExporter
getSpanExporter()
Returns theSpanExporter
which can be used to register handlers to export all the spans that are part of a distributed sampled trace (seeTraceOptions.isSampled()
).-
Methods inherited from class io.opencensus.trace.export.ExportComponent
newNoopExportComponent, shutdown
-
-
-
-
Field Detail
-
noopSampledSpanStore
private final SampledSpanStore noopSampledSpanStore
-
-
Method Detail
-
getSpanExporter
public SpanExporter getSpanExporter()
Description copied from class:ExportComponent
Returns theSpanExporter
which can be used to register handlers to export all the spans that are part of a distributed sampled trace (seeTraceOptions.isSampled()
).- Specified by:
getSpanExporter
in classExportComponent
- Returns:
- the implementation of the
SpanExporter
or no-op if no implementation linked in the binary.
-
getRunningSpanStore
public RunningSpanStore getRunningSpanStore()
Description copied from class:ExportComponent
Returns theRunningSpanStore
that can be used to get useful debugging information about all the current active spans.- Specified by:
getRunningSpanStore
in classExportComponent
- Returns:
- the
RunningSpanStore
.
-
getSampledSpanStore
public SampledSpanStore getSampledSpanStore()
Description copied from class:ExportComponent
Returns theSampledSpanStore
that can be used to get useful debugging information, such as latency based sampled spans, error based sampled spans.- Specified by:
getSampledSpanStore
in classExportComponent
- Returns:
- the
SampledSpanStore
.
-
-