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 classNested classes/interfaces inherited from class SampledSpanStore
SampledSpanStore.ErrorFilter, SampledSpanStore.LatencyBucketBoundaries, SampledSpanStore.LatencyFilter, SampledSpanStore.PerSpanNameSummary, SampledSpanStore.Summary -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidConsiders to save the given spans to the stored samples.abstract booleanReturnstrueif the SampledSpanStore is enabled.static SampledSpanStoreImplReturns the new no-op implmentation ofSampledSpanStoreImpl.protected voidshutdown()
-
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()Returnstrueif the SampledSpanStore is enabled.- Returns:
trueif the SampledSpanStore is enabled.
-
shutdown
protected void shutdown()
-