Class SampledSpanStoreImpl
java.lang.Object
io.opencensus.trace.export.SampledSpanStore
io.opencensus.implcore.trace.export.SampledSpanStoreImpl
- Direct Known Subclasses:
InProcessSampledSpanStoreImpl
,SampledSpanStoreImpl.NoopSampledSpanStoreImpl
Abstract implementation of the
SampledSpanStore
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
Nested classes/interfaces inherited from class io.opencensus.trace.export.SampledSpanStore
SampledSpanStore.ErrorFilter, SampledSpanStore.LatencyBucketBoundaries, SampledSpanStore.LatencyFilter, SampledSpanStore.PerSpanNameSummary, SampledSpanStore.Summary
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
Considers to save the given spans to the stored samples.abstract boolean
Returnstrue
if the SampledSpanStore is enabled.static SampledSpanStoreImpl
Returns the new no-op implmentation ofSampledSpanStoreImpl
.protected void
shutdown()
Methods inherited from class io.opencensus.trace.export.SampledSpanStore
getErrorSampledSpans, getLatencySampledSpans, getRegisteredSpanNamesForCollection, getSummary, registerSpanNamesForCollection, unregisterSpanNamesForCollection
-
Field Details
-
NOOP_SAMPLED_SPAN_STORE_IMPL
-
-
Constructor Details
-
SampledSpanStoreImpl
public SampledSpanStoreImpl()
-
-
Method Details
-
getNoopSampledSpanStoreImpl
Returns the new no-op implmentation ofSampledSpanStoreImpl
. -
considerForSampling
Considers to save the given spans to the stored samples. This must be called at the end of each Span with the option RECORD_EVENTS.- Parameters:
span
- the span to be consider for storing into the store buckets.
-
getEnabled
public abstract boolean getEnabled()Returnstrue
if the SampledSpanStore is enabled.- Returns:
true
if the SampledSpanStore is enabled.
-
shutdown
protected void shutdown()
-