public abstract class ServerSpan extends Object
ServerTracer and keeps track of Trace/Span state of our service request.| Modifier and Type | Field and Description |
|---|---|
static ServerSpan |
EMPTY |
| Modifier and Type | Method and Description |
|---|---|
abstract Boolean |
getSample()
Indicates if we need to sample this request or not.
|
abstract Span |
getSpan()
Gets the Trace/Span context.
|
public static final ServerSpan EMPTY
@Nullable public abstract Span getSpan()
null in case we did not get any context in request.@Nullable public abstract Boolean getSample()
true in case we should sample this request, false in case we should not sample this
request or null in case we did not get any indication about sampling this request. In this case
new client requests should decide about sampling or not.Copyright © 2016. All rights reserved.