Class SpanStore


  • public class SpanStore
    extends Object
    Stores information about the Spans.
    • Constructor Detail

      • SpanStore

        public SpanStore()
    • Method Detail

      • addSpanWrapper

        public SpanWrapper addSpanWrapper​(String spanId,
                                          io.opentelemetry.api.trace.Span activeSpan,
                                          StatisticDataUnit statisticDataUnit,
                                          SpanWrapper parentSpanWrapper,
                                          MessageContext synCtx)
        Denotes the beginning of a span. Adds appropriate elements to necessary data structures.
        Parameters:
        spanId - Index of the span wrapper
        activeSpan - Reference to the span object, that have been started
        statisticDataUnit - The statistic data unit object
        parentSpanWrapper - Parent span wrapper of the created span wrapper
        synCtx - Message Context that is reported during the open event
        Returns:
        Created span wrapper object
      • finishSpan

        public void finishSpan​(SpanWrapper spanWrapper)
        Denotes the end of a span. Adds tags to the span and removes reference to the appropriate span wrapper in activeSpanWrappers.
        Parameters:
        spanWrapper - Span wrapper object, which has been already created
      • assignOuterLevelSpan

        public void assignOuterLevelSpan​(SpanWrapper spanWrapper)
      • getOuterLevelSpanWrapper

        public SpanWrapper getOuterLevelSpanWrapper()
      • getSpanWrapperByComponentUniqueId

        public SpanWrapper getSpanWrapperByComponentUniqueId​(String componentUniqueId)
      • addContinuationStateSequenceInfo

        public void addContinuationStateSequenceInfo​(ContinuationStateSequenceInfo continuationStateSequenceInfo)
      • hasContinuationStateSequenceInfoWithId

        public boolean hasContinuationStateSequenceInfoWithId​(String id)