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 |
setClientSent(int ipv4,
int port,
String serviceName)
Like
setClientSent(), except you can log the network context of the destination. |
SpanId |
startNewSpan(String requestName)
Start a new span for a new client request that will be bound to current thread.
|
create, submitAnnotation, submitAnnotation, submitBinaryAnnotation, submitBinaryAnnotationpublic static ClientTracer.Builder builder()
public void setClientSent()
public void setClientSent(int ipv4,
int port,
@Nullable
String serviceName)
setClientSent(), except you can log the network context of the destination.ipv4 - ipv4 of the server as an int. Ex for 1.2.3.4, it would be (1 << 24) | (2 << 16) | (3 << 8) | 4port - listen port the client is connecting to, or 0 if unknownserviceName - lowercase name of the service being called
or null if unknownpublic void setClientReceived()
public SpanId startNewSpan(String requestName)
null in case this request should not be traced (eg sampling).requestName - Request name. Should be lowercase and not null or empty.null in case we should not trace this new client request.Copyright © 2016. All rights reserved.