Class ExportComponentImpl
java.lang.Object
io.opencensus.trace.export.ExportComponent
io.opencensus.implcore.trace.export.ExportComponentImpl
Implementation of the
ExportComponent.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final Durationprivate final InProcessRunningSpanStoreprivate final SampledSpanStoreImplprivate final SpanExporterImpl -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateExportComponentImpl(boolean supportInProcessStores, EventQueue eventQueue) Constructs a newExportComponentImpl. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExportComponentImplcreateWithInProcessStores(EventQueue eventQueue) Returns a newExportComponentImplthat has valid instances forRunningSpanStoreandSampledSpanStore.static ExportComponentImplcreateWithoutInProcessStores(EventQueue eventQueue) Returns a newExportComponentImplthat hasnullinstances forRunningSpanStoreandSampledSpanStore.Returns theRunningSpanStorethat can be used to get useful debugging information about all the current active spans.Returns theSampledSpanStorethat can be used to get useful debugging information, such as latency based sampled spans, error based sampled spans.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 ExportComponent
newNoopExportComponent
-
Field Details
-
EXPORTER_BUFFER_SIZE
private static final int EXPORTER_BUFFER_SIZE- See Also:
-
EXPORTER_SCHEDULE_DELAY
-
spanExporter
-
inProcessRunningSpanStore
-
sampledSpanStore
-
-
Constructor Details
-
ExportComponentImpl
Constructs a newExportComponentImpl.- Parameters:
supportInProcessStores-trueto instantiateRunningSpanStoreandSampledSpanStore.
-
-
Method Details
-
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
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
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
Returns a newExportComponentImplthat has valid instances forRunningSpanStoreandSampledSpanStore.- Returns:
- a new
ExportComponentImpl.
-
createWithoutInProcessStores
Returns a newExportComponentImplthat hasnullinstances forRunningSpanStoreandSampledSpanStore.- Returns:
- a new
ExportComponentImpl.
-