public interface ServerTracer extends AnnotationSubmitter
ServerTracer#setStateExistingTrace(TraceContext), setStateNoTracing() or
setStateUnknown(String).setServerReceived() to mark the point in time at which we received the request.setServerSend().
| Modifier and Type | Method and Description |
|---|---|
void |
clearCurrentSpan()
Clears current span.
|
long |
getThreadDuration()
Gets the thread execution duration for this span.
|
void |
setServerReceived()
Sets server received event for current request.
|
void |
setServerSend()
Sets the server sent event for current thread.
|
void |
setStateCurrentTrace(long traceId,
long spanId,
Long parentSpanId,
String name)
Sets the current Trace/Span state.
|
void |
setStateNoTracing()
Sets the current Trace/Span state.
|
void |
setStateUnknown(String spanName)
Sets the current Trace/Span state.
|
submitAnnotation, submitAnnotation, submitBinaryAnnotation, submitBinaryAnnotationvoid clearCurrentSpan()
void setStateCurrentTrace(long traceId,
long spanId,
Long parentSpanId,
String name)
traceId - Trace id.spanId - Span id.parentSpanId - Parent span id. Can be null.name - Name should not be empty or null.setStateNoTracing(),
setStateUnknown(String)void setStateNoTracing()
ServerTracer#setStateExistingTrace(TraceContext),
setStateUnknown(String)void setStateUnknown(String spanName)
spanName - The name of our current request/span.void setServerReceived()
ServerTracer#setStateExistingTrace(TraceContext), setStateNoTracing() or
setStateUnknown(String).void setServerSend()
long getThreadDuration()
Copyright © 2014. All Rights Reserved.