public abstract class ClientTracer extends AnnotationSubmitter
ClientRequestInterceptor,
ClientResponseInterceptor| Modifier and Type | Class and Description |
|---|---|
static class |
ClientTracer.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ClientTracer.Builder |
builder() |
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.
|
create, submitAnnotation, submitBinaryAnnotation, submitBinaryAnnotationpublic static ClientTracer.Builder builder()
public void setClientSent()
public void setClientReceived()
public SpanId 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.public void setCurrentClientServiceName(String serviceName)
startNewSpan(String) and
before setClientSent().serviceName - should be the same as the name of the service the client is calling.Copyright © 2015. All Rights Reserved.