public class OpenCensusSpanAdapter extends Object implements SpiSpecificSpan
Modifier and Type | Method and Description |
---|---|
OpenCensusSpanAdapter |
addLog(String logDesc)
Logs work to span.
|
OpenCensusSpanAdapter |
addTag(String tagName,
String tagVal)
Adds tag to span with
String value. |
OpenCensusSpanAdapter |
end()
Ends span.
|
io.opencensus.trace.Span |
impl()
Implementation object.
|
boolean |
isEnded() |
OpenCensusSpanAdapter |
setStatus(SpanStatus spanStatus)
Explicitly set status for span.
|
public io.opencensus.trace.Span impl()
public OpenCensusSpanAdapter addTag(String tagName, String tagVal)
String
value.addTag
in interface SpiSpecificSpan
tagName
- Tag name.tagVal
- Tag value.public OpenCensusSpanAdapter addLog(String logDesc)
addLog
in interface SpiSpecificSpan
logDesc
- Log description.public OpenCensusSpanAdapter setStatus(SpanStatus spanStatus)
setStatus
in interface SpiSpecificSpan
spanStatus
- Status.public OpenCensusSpanAdapter end()
end
in interface SpiSpecificSpan
public boolean isEnded()
isEnded
in interface SpiSpecificSpan
true
if span has already ended.
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024