Class ExportComponentImpl
- java.lang.Object
-
- io.opencensus.trace.export.ExportComponent
-
- io.opencensus.implcore.trace.export.ExportComponentImpl
-
public final class ExportComponentImpl extends ExportComponent
Implementation of theExportComponent.
-
-
Field Summary
Fields Modifier and Type Field Description private static intEXPORTER_BUFFER_SIZEprivate static DurationEXPORTER_SCHEDULE_DELAYprivate InProcessRunningSpanStoreinProcessRunningSpanStoreprivate SampledSpanStoreImplsampledSpanStoreprivate SpanExporterImplspanExporter
-
Constructor Summary
Constructors Modifier Constructor Description privateExportComponentImpl(boolean supportInProcessStores, EventQueue eventQueue)Constructs a newExportComponentImpl.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExportComponentImplcreateWithInProcessStores(EventQueue eventQueue)Returns a newExportComponentImplthat has valid instances forRunningSpanStoreandSampledSpanStore.static ExportComponentImplcreateWithoutInProcessStores(EventQueue eventQueue)Returns a newExportComponentImplthat hasnullinstances forRunningSpanStoreandSampledSpanStore.InProcessRunningSpanStoregetRunningSpanStore()Returns theRunningSpanStorethat can be used to get useful debugging information about all the current active spans.SampledSpanStoreImplgetSampledSpanStore()Returns theSampledSpanStorethat can be used to get useful debugging information, such as latency based sampled spans, error based sampled spans.SpanExporterImplgetSpanExporter()Returns theSpanExporterwhich can be used to register handlers to export all the spans that are part of a distributed sampled trace (seeTraceOptions.isSampled()).voidshutdown()Will shutdown this ExportComponent after flushing any pending spans.-
Methods inherited from class io.opencensus.trace.export.ExportComponent
newNoopExportComponent
-
-
-
-
Field Detail
-
EXPORTER_BUFFER_SIZE
private static final int EXPORTER_BUFFER_SIZE
- See Also:
- Constant Field Values
-
EXPORTER_SCHEDULE_DELAY
private static final Duration EXPORTER_SCHEDULE_DELAY
-
spanExporter
private final SpanExporterImpl spanExporter
-
inProcessRunningSpanStore
private final InProcessRunningSpanStore inProcessRunningSpanStore
-
sampledSpanStore
private final SampledSpanStoreImpl sampledSpanStore
-
-
Constructor Detail
-
ExportComponentImpl
private ExportComponentImpl(boolean supportInProcessStores, EventQueue eventQueue)Constructs a newExportComponentImpl.- Parameters:
supportInProcessStores-trueto instantiateRunningSpanStoreandSampledSpanStore.
-
-
Method Detail
-
getSpanExporter
public SpanExporterImpl getSpanExporter()
Description copied from class:ExportComponentReturns theSpanExporterwhich can be used to register handlers to export all the spans that are part of a distributed sampled trace (seeTraceOptions.isSampled()).- Specified by:
getSpanExporterin classExportComponent- Returns:
- the implementation of the
SpanExporteror no-op if no implementation linked in the binary.
-
getRunningSpanStore
public InProcessRunningSpanStore getRunningSpanStore()
Description copied from class:ExportComponentReturns theRunningSpanStorethat can be used to get useful debugging information about all the current active spans.- Specified by:
getRunningSpanStorein classExportComponent- Returns:
- the
RunningSpanStore.
-
getSampledSpanStore
public SampledSpanStoreImpl getSampledSpanStore()
Description copied from class:ExportComponentReturns theSampledSpanStorethat can be used to get useful debugging information, such as latency based sampled spans, error based sampled spans.- Specified by:
getSampledSpanStorein classExportComponent- Returns:
- the
SampledSpanStore.
-
shutdown
public void shutdown()
Description copied from class:ExportComponentWill shutdown this ExportComponent after flushing any pending spans.- Overrides:
shutdownin classExportComponent
-
createWithInProcessStores
public static ExportComponentImpl createWithInProcessStores(EventQueue eventQueue)
Returns a newExportComponentImplthat has valid instances forRunningSpanStoreandSampledSpanStore.- Returns:
- a new
ExportComponentImpl.
-
createWithoutInProcessStores
public static ExportComponentImpl createWithoutInProcessStores(EventQueue eventQueue)
Returns a newExportComponentImplthat hasnullinstances forRunningSpanStoreandSampledSpanStore.- Returns:
- a new
ExportComponentImpl.
-
-