public interface Span extends SpanCustomizer
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Span.Builder
In some cases (e.g.
|
static class |
Span.Kind
Type of span.
|
| Modifier and Type | Method and Description |
|---|---|
void |
abandon()
Ends the span.
|
TraceContext |
context() |
void |
end()
Ends the span.
|
Span |
error(Throwable throwable)
Records an exception for this span.
|
Span |
event(String value)
Sets an event on this span.
|
boolean |
isNoop() |
Span |
name(String name)
Sets a name on this span.
|
default Span |
remoteIpAndPort(String ip,
int port)
Sets the remote url on the span.
|
default Span |
remoteServiceName(String remoteServiceName)
Sets the remote service name for the span.
|
Span |
start()
Starts this span.
|
Span |
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.Span start()
Span name(String name)
name in interface SpanCustomizername - name to set on the spanSpan event(String value)
event in interface SpanCustomizervalue - event name to set on the spanSpan tag(String key, String value)
tag in interface SpanCustomizerkey - tag keyvalue - tag valueSpan error(Throwable throwable)
throwable - to recordvoid end()
void abandon()
default Span remoteServiceName(String remoteServiceName)
remoteServiceName - remote service nameCopyright © 2021 Pivotal Software, Inc.. All rights reserved.