Class DeferredSpan
- java.lang.Object
-
- org.apache.ignite.internal.processors.tracing.DeferredSpan
-
-
Constructor Summary
Constructors Constructor Description DeferredSpan(byte[] serializedSpan)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SpanaddLog(Supplier<String> logDescSupplier)Logs work to span.SpanaddTag(String tagName, Supplier<String> tagValSupplier)Adds tag to span withStringvalue.Spanend()Ends span.Set<Scope>includedScopes()booleanisChainable(Scope scope)booleanisEnded()byte[]serializedSpan()SpansetStatus(SpanStatus spanStatus)Explicitly set status for span.SpanTypetype()
-
-
-
Method Detail
-
serializedSpan
public byte[] serializedSpan()
- Returns:
- Serialized span.
-
addTag
public Span addTag(String tagName, Supplier<String> tagValSupplier)
Adds tag to span withStringvalue.
-
setStatus
public Span setStatus(SpanStatus spanStatus)
Explicitly set status for span.
-
end
public Span end()
Ends span. This action sets default status if not set and mark the span as ready to be exported.
-
isEnded
public boolean isEnded()
-
includedScopes
public Set<Scope> includedScopes()
- Specified by:
includedScopesin interfaceSpan- Returns:
- Set of included scopes.
-
isChainable
public boolean isChainable(Scope scope)
- Specified by:
isChainablein interfaceSpan- Parameters:
scope- Chainable scope candidate.- Returns:
trueif given span is chainable with other spans with specified scope.
-
-