Class RunningSpanStore.NoopRunningSpanStore

java.lang.Object
io.opencensus.trace.export.RunningSpanStore
io.opencensus.trace.export.RunningSpanStore.NoopRunningSpanStore
Enclosing class:
RunningSpanStore

private static final class RunningSpanStore.NoopRunningSpanStore extends RunningSpanStore
  • Field Details

  • Constructor Details

    • NoopRunningSpanStore

      private NoopRunningSpanStore()
  • Method Details

    • getSummary

      public RunningSpanStore.Summary getSummary()
      Description copied from class: RunningSpanStore
      Returns the summary of all available data such, as number of running spans.
      Specified by:
      getSummary in class RunningSpanStore
      Returns:
      the summary of all available data.
    • getRunningSpans

      public Collection<SpanData> getRunningSpans(RunningSpanStore.Filter filter)
      Description copied from class: RunningSpanStore
      Returns a list of running spans that match the Filter.
      Specified by:
      getRunningSpans in class RunningSpanStore
      Parameters:
      filter - used to filter the returned spans.
      Returns:
      a list of running spans that match the Filter.
    • setMaxNumberOfSpans

      public void setMaxNumberOfSpans(int maxNumberOfSpans)
      Description copied from class: RunningSpanStore
      Sets the maximum number of Spans in th RunningSpanStore.

      0 means disabled, by default the RunningSpanStore is disabled.

      Specified by:
      setMaxNumberOfSpans in class RunningSpanStore
      Parameters:
      maxNumberOfSpans - the maximum number of Spans in th RunningSpanStore.