Package io.opencensus.trace.export
Class ExportComponent
- java.lang.Object
-
- io.opencensus.trace.export.ExportComponent
-
- Direct Known Subclasses:
ExportComponent.NoopExportComponent
,ExportComponentImpl
public abstract class ExportComponent extends java.lang.Object
Class that holds the implementation instances forSpanExporter
,RunningSpanStore
andSampledSpanStore
.Unless otherwise noted all methods (on component) results are cacheable.
- Since:
- 0.5
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
ExportComponent.NoopExportComponent
-
Constructor Summary
Constructors Constructor Description ExportComponent()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract RunningSpanStore
getRunningSpanStore()
Returns theRunningSpanStore
that can be used to get useful debugging information about all the current active spans.abstract SampledSpanStore
getSampledSpanStore()
Returns theSampledSpanStore
that can be used to get useful debugging information, such as latency based sampled spans, error based sampled spans.abstract 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()
).static ExportComponent
newNoopExportComponent()
Returns the no-op implementation of theExportComponent
.void
shutdown()
Will shutdown this ExportComponent after flushing any pending spans.
-
-
-
Method Detail
-
newNoopExportComponent
public static ExportComponent newNoopExportComponent()
Returns the no-op implementation of theExportComponent
.- Returns:
- the no-op implementation of the
ExportComponent
. - Since:
- 0.5
-
getSpanExporter
public abstract 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()
).- Returns:
- the implementation of the
SpanExporter
or no-op if no implementation linked in the binary. - Since:
- 0.5
-
getRunningSpanStore
public abstract RunningSpanStore getRunningSpanStore()
Returns theRunningSpanStore
that can be used to get useful debugging information about all the current active spans.- Returns:
- the
RunningSpanStore
. - Since:
- 0.5
-
getSampledSpanStore
public abstract SampledSpanStore getSampledSpanStore()
Returns theSampledSpanStore
that can be used to get useful debugging information, such as latency based sampled spans, error based sampled spans.- Returns:
- the
SampledSpanStore
. - Since:
- 0.5
-
shutdown
public void shutdown()
Will shutdown this ExportComponent after flushing any pending spans.- Since:
- 0.14
-
-