Class SpanImpl
- java.lang.Object
-
- org.apache.ignite.internal.processors.tracing.SpanImpl
-
-
Constructor Summary
Constructors Constructor Description SpanImpl(SpiSpecificSpan spiSpecificSpan, SpanType spanType, Set<Scope> includedScopes)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()booleanisEnded()SpansetStatus(SpanStatus spanStatus)Explicitly set status for span.SpiSpecificSpanspiSpecificSpan()SpanTypetype()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.ignite.internal.processors.tracing.Span
isChainable
-
-
-
-
Constructor Detail
-
SpanImpl
public SpanImpl(SpiSpecificSpan spiSpecificSpan, SpanType spanType, Set<Scope> includedScopes)
Constructor- Parameters:
spiSpecificSpan- Spi specific span.spanType- Type of a span.includedScopes- Set of included scopes.
-
-
Method Detail
-
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.
-
spiSpecificSpan
public SpiSpecificSpan spiSpecificSpan()
- Returns:
- Spi specific span delegate.
-
-