Class TracingScope


  • public class TracingScope
    extends Object
    Represents a scope, which is represented as a separate trace. A scope carries information about a message flow that happens across mediators, within a particular Proxy Service or an API.
    • Constructor Detail

      • TracingScope

        public TracingScope​(String tracingScopeId)
    • Method Detail

      • getSpanStore

        public SpanStore getSpanStore()
      • addCallback

        public void addCallback()
        Increments pending callbacks count in this scope, till its super parent.
      • removeCallback

        public void removeCallback()
        Decrements pending callbacks count in this scope, till its super parent.
      • isEventCollectionFinished

        public boolean isEventCollectionFinished​(MessageContext synCtx)
        Denotes whether event collection has been finished in this scope, so that the outer level span of this scope can be ended.
        Parameters:
        synCtx - Message context.
        Returns:
        Whether event collection has been finished or not.
      • getTracingScopeId

        public String getTracingScopeId()