public interface ServerSpan
ServerTracer and keeps track of Trace/Span state of our service request.| Modifier and Type | Method and Description |
|---|---|
Boolean |
getSample()
Indicates if we need to sample this request or not.
|
Span |
getSpan()
Gets the Trace/Span context.
|
long |
getThreadDuration()
Gets the sum of the durations of all threads that are executed as part of current service request.
|
void |
incThreadDuration(long durationMs)
Increment the thread duration for this service request.
|
Span getSpan()
null in case we did not get any context in request.long getThreadDuration()
void incThreadDuration(long durationMs)
durationMs - Duration in milliseconds.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 © 2014. All Rights Reserved.