Class SampledSpanStoreImpl
- java.lang.Object
-
- io.opencensus.trace.export.SampledSpanStore
-
- io.opencensus.implcore.trace.export.SampledSpanStoreImpl
-
- Direct Known Subclasses:
InProcessSampledSpanStoreImpl
,SampledSpanStoreImpl.NoopSampledSpanStoreImpl
public abstract class SampledSpanStoreImpl extends SampledSpanStore
Abstract implementation of theSampledSpanStore
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
SampledSpanStoreImpl.NoopSampledSpanStoreImpl
-
Nested classes/interfaces inherited from class io.opencensus.trace.export.SampledSpanStore
SampledSpanStore.ErrorFilter, SampledSpanStore.LatencyBucketBoundaries, SampledSpanStore.LatencyFilter, SampledSpanStore.PerSpanNameSummary, SampledSpanStore.Summary
-
-
Field Summary
Fields Modifier and Type Field Description private static SampledSpanStoreImpl
NOOP_SAMPLED_SPAN_STORE_IMPL
-
Constructor Summary
Constructors Constructor Description SampledSpanStoreImpl()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
considerForSampling(RecordEventsSpanImpl span)
Considers to save the given spans to the stored samples.abstract boolean
getEnabled()
Returnstrue
if the SampledSpanStore is enabled.static SampledSpanStoreImpl
getNoopSampledSpanStoreImpl()
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 Detail
-
NOOP_SAMPLED_SPAN_STORE_IMPL
private static final SampledSpanStoreImpl NOOP_SAMPLED_SPAN_STORE_IMPL
-
-
Method Detail
-
getNoopSampledSpanStoreImpl
public static SampledSpanStoreImpl getNoopSampledSpanStoreImpl()
Returns the new no-op implmentation ofSampledSpanStoreImpl
.
-
considerForSampling
public abstract void considerForSampling(RecordEventsSpanImpl span)
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()
-
-