public interface ClientTracer extends AnnotationSubmitter
ClientTracer implementation. The user should not be aware.| Modifier and Type | Method and Description |
|---|---|
void |
setClientReceived()
Sets the 'client received' event for current thread.
|
void |
setClientSent()
Sets 'client sent' event for current thread.
|
void |
setCurrentClientServiceName(String serviceName)
Override the service name that will be submitted in the annotations.
|
SpanId |
startNewSpan(String requestName)
Start a new span for a new client request that will be bound to current thread.
|
submitAnnotation, submitAnnotation, submitBinaryAnnotation, submitBinaryAnnotationSpanId startNewSpan(String requestName)
null in case this request should not be traced (eg sampling).requestName - Request name. Should not be null or empty.null in case we should not trace this new client request.void setCurrentClientServiceName(String serviceName)
startNewSpan(String) and
before setClientSent().serviceName - should be the same as the name of the service the client is calling.void setClientSent()
void setClientReceived()
Copyright © 2014. All Rights Reserved.