Class TracingScope
- java.lang.Object
-
- org.apache.synapse.aspects.flow.statistics.tracing.opentelemetry.management.scoping.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 Summary
Constructors Constructor Description TracingScope(String tracingScopeId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCallback()
Increments pending callbacks count in this scope, till its super parent.SpanStore
getSpanStore()
String
getTracingScopeId()
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.void
removeCallback()
Decrements pending callbacks count in this scope, till its super parent.
-
-
-
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()
-
-