brave.Span with kind=Kind.CLIENT@Deprecated public abstract class ClientTracer extends AnnotationSubmitter
ClientRequestInterceptor,
ClientResponseInterceptor| Modifier and Type | Class | Description |
|---|---|---|
static class |
ClientTracer.Builder |
Deprecated.
Don't build your own ClientTracer. Use
Brave.clientTracer() |
AnnotationSubmitter.Clock| Modifier and Type | Method | Description |
|---|---|---|
static ClientTracer.Builder |
builder() |
Deprecated.
Don't build your own ClientTracer. Use
Brave.clientTracer() |
void |
setClientReceived() |
Deprecated.
Sets the 'client received' event for current thread.
|
void |
setClientSent() |
Deprecated.
Sets 'client sent' event for current thread.
|
void |
setClientSent(int ipv4,
int port,
java.lang.String serviceName) |
Deprecated.
|
void |
setClientSent(Endpoint server) |
Deprecated.
Like
setClientSent(), except you can log the network context of the destination. |
SpanId |
startNewSpan(java.lang.String requestName) |
Deprecated.
Start a new span for a new client request that will be bound to current thread.
|
create, submitAnnotation, submitAnnotation, submitBinaryAnnotation, submitBinaryAnnotation@Deprecated public static ClientTracer.Builder builder()
Brave.clientTracer()public void setClientSent()
public void setClientSent(Endpoint server)
setClientSent(), except you can log the network context of the destination.server - represents the server (peer). Set Endpoint.service_name to
"unknown" if unknown.@Deprecated
public void setClientSent(int ipv4,
int port,
@Nullable
java.lang.String serviceName)
setClientSent(Endpoint)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(@Nullable java.lang.String requestName)
null in case this request should not be traced (eg sampling).requestName - Request name. Should be lowercase. Null or empty will defer to the server's name of the operation.null in case we should not trace this new client request.Copyright © 2018 OpenZipkin. All rights reserved.