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 int
private static final Duration
private final InProcessRunningSpanStore
private final SampledSpanStoreImpl
private final SpanExporterImpl
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ExportComponentImpl
(boolean supportInProcessStores, EventQueue eventQueue) Constructs a newExportComponentImpl
. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExportComponentImpl
createWithInProcessStores
(EventQueue eventQueue) Returns a newExportComponentImpl
that has valid instances forRunningSpanStore
andSampledSpanStore
.static ExportComponentImpl
createWithoutInProcessStores
(EventQueue eventQueue) Returns a newExportComponentImpl
that hasnull
instances forRunningSpanStore
andSampledSpanStore
.Returns theRunningSpanStore
that can be used to get useful debugging information about all the current active spans.Returns theSampledSpanStore
that can be used to get useful debugging information, such as latency based sampled spans, error based sampled spans.Returns theSpanExporter
which can be used to register handlers to export all the spans that are part of a distributed sampled trace (seeTraceOptions.isSampled()
).void
shutdown()
Will shutdown this ExportComponent after flushing any pending spans.Methods inherited from class io.opencensus.trace.export.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
-true
to instantiateRunningSpanStore
andSampledSpanStore
.
-
-
Method Details
-
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
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
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
.
-
shutdown
public void shutdown()Description copied from class:ExportComponent
Will shutdown this ExportComponent after flushing any pending spans.- Overrides:
shutdown
in classExportComponent
-
createWithInProcessStores
Returns a newExportComponentImpl
that has valid instances forRunningSpanStore
andSampledSpanStore
.- Returns:
- a new
ExportComponentImpl
.
-
createWithoutInProcessStores
Returns a newExportComponentImpl
that hasnull
instances forRunningSpanStore
andSampledSpanStore
.- Returns:
- a new
ExportComponentImpl
.
-