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() |
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.this
for chaining.public OpenCensusSpanAdapter addLog(String logDesc)
addLog
in interface SpiSpecificSpan
logDesc
- Log description.this
for chaining.public OpenCensusSpanAdapter setStatus(SpanStatus spanStatus)
setStatus
in interface SpiSpecificSpan
spanStatus
- Status.this
for chaining.public OpenCensusSpanAdapter end()
end
in interface SpiSpecificSpan
this
for chaining.public boolean isEnded()
isEnded
in interface SpiSpecificSpan
true
if span has already ended.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023