public interface ScopedSpan
end() ()} is called.| Modifier and Type | Method and Description |
|---|---|
TraceContext |
context() |
void |
end()
Ends the span.
|
ScopedSpan |
error(Throwable throwable)
Records an exception for this span.
|
ScopedSpan |
event(String value)
Sets an event on this span.
|
boolean |
isNoop() |
ScopedSpan |
name(String name)
Sets a name on this span.
|
ScopedSpan |
tag(String key,
String value)
Sets a tag on this span.
|
boolean isNoop()
true when no recording is done and nothing is reported to an
external system. However, this span should still be injected into outgoing
requests. Use this flag to avoid performing expensive computation.TraceContext context()
TraceContext corresponding to this span.ScopedSpan name(String name)
name - name to set on the spanScopedSpan tag(String key, String value)
key - tag keyvalue - tag valueScopedSpan event(String value)
value - event name to set on the spanScopedSpan error(Throwable throwable)
throwable - to recordvoid end()
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.