Class InProcessRunningSpanStore

    • Constructor Detail

      • InProcessRunningSpanStore

        public InProcessRunningSpanStore()
    • Method Detail

      • onStart

        public void onStart​(RecordEventsSpanImpl span)
        Adds the Span into the running spans list when the Span starts.
        Parameters:
        span - the Span that started.
      • onEnd

        public void onEnd​(RecordEventsSpanImpl span)
        Removes the Span from the running spans list when the Span ends.
        Parameters:
        span - the Span that ended.
      • getEnabled

        public boolean getEnabled()
        Returns true if the RunningSpanStore is enabled.
        Returns:
        true if the RunningSpanStore is enabled.
      • 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.