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 NoopSpiSpecificSpanINSTANCEInstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NoopSpiSpecificSpanaddLog(String logDesc)Logs work to span.NoopSpiSpecificSpanaddTag(String tagName, String tagVal)Adds tag to span withStringvalue.NoopSpiSpecificSpanend()Ends span.booleanisEnded()NoopSpiSpecificSpansetStatus(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 withStringvalue.- Specified by:
addTagin interfaceSpiSpecificSpan- Parameters:
tagName- Tag name.tagVal- Tag value.- Returns:
thisfor chaining.
-
addLog
public NoopSpiSpecificSpan addLog(String logDesc)
Logs work to span.- Specified by:
addLogin interfaceSpiSpecificSpan- Parameters:
logDesc- Log description.- Returns:
thisfor chaining.
-
setStatus
public NoopSpiSpecificSpan setStatus(SpanStatus spanStatus)
Explicitly set status for span.- Specified by:
setStatusin interfaceSpiSpecificSpan- Parameters:
spanStatus- Status.- Returns:
thisfor 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:
endin interfaceSpiSpecificSpan- Returns:
thisfor chaining.
-
isEnded
public boolean isEnded()
- Specified by:
isEndedin interfaceSpiSpecificSpan- Returns:
trueif span has already ended.
-
-