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 the SampledSpanStore.
  • Field Details

    • NOOP_SAMPLED_SPAN_STORE_IMPL

      private static final SampledSpanStoreImpl NOOP_SAMPLED_SPAN_STORE_IMPL
  • Constructor Details

    • SampledSpanStoreImpl

      public SampledSpanStoreImpl()
  • Method Details

    • getNoopSampledSpanStoreImpl

      public static SampledSpanStoreImpl getNoopSampledSpanStoreImpl()
      Returns the new no-op implmentation of SampledSpanStoreImpl.
    • 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()
      Returns true if the SampledSpanStore is enabled.
      Returns:
      true if the SampledSpanStore is enabled.
    • shutdown

      protected void shutdown()