Package org.apache.ignite.spi.tracing
Class NoopSpiSpecificSpan
- java.lang.Object
-
- org.apache.ignite.spi.tracing.NoopSpiSpecificSpan
-
- All Implemented Interfaces:
SpiSpecificSpan
public class NoopSpiSpecificSpan extends Object implements SpiSpecificSpan
Noop and null-safe implementation ofSpiSpecificSpan
.
-
-
Field Summary
Fields Modifier and Type Field Description static NoopSpiSpecificSpan
INSTANCE
Instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NoopSpiSpecificSpan
addLog(String logDesc)
Logs work to span.NoopSpiSpecificSpan
addTag(String tagName, String tagVal)
Adds tag to span withString
value.NoopSpiSpecificSpan
end()
Ends span.boolean
isEnded()
NoopSpiSpecificSpan
setStatus(SpanStatus spanStatus)
Explicitly set status for span.
-
-
-
Field Detail
-
INSTANCE
public static final NoopSpiSpecificSpan INSTANCE
Instance.
-
-
Method Detail
-
addTag
public NoopSpiSpecificSpan addTag(String tagName, String tagVal)
Adds tag to span withString
value.- Specified by:
addTag
in interfaceSpiSpecificSpan
- Parameters:
tagName
- Tag name.tagVal
- Tag value.- Returns:
this
for chaining.
-
addLog
public NoopSpiSpecificSpan addLog(String logDesc)
Logs work to span.- Specified by:
addLog
in interfaceSpiSpecificSpan
- Parameters:
logDesc
- Log description.- Returns:
this
for chaining.
-
setStatus
public NoopSpiSpecificSpan setStatus(SpanStatus spanStatus)
Explicitly set status for span.- Specified by:
setStatus
in interfaceSpiSpecificSpan
- Parameters:
spanStatus
- Status.- Returns:
this
for chaining.
-
end
public NoopSpiSpecificSpan end()
Ends span. This action sets default status if not set and mark the span as ready to be exported.- Specified by:
end
in interfaceSpiSpecificSpan
- Returns:
this
for chaining.
-
isEnded
public boolean isEnded()
- Specified by:
isEnded
in interfaceSpiSpecificSpan
- Returns:
true
if span has already ended.
-
-