brave.Span with kind=Kind.SERVER@Deprecated public abstract class ServerTracer extends AnnotationSubmitter
setStateCurrentTrace(SpanId, String), setStateNoTracing() or
setStateUnknown(String).setServerReceived() to mark the point in time at which we received the request.setServerSend().
| Modifier and Type | Class | Description |
|---|---|---|
static class |
ServerTracer.Builder |
Deprecated.
Don't build your own ServerTracer. Use
Brave.serverTracer() |
AnnotationSubmitter.Clock| Modifier and Type | Method | Description |
|---|---|---|
static ServerTracer.Builder |
builder() |
Deprecated.
Don't build your own ServerTracer. Use
Brave.serverTracer() |
void |
clearCurrentSpan() |
Deprecated.
Clears current span.
|
void |
setServerReceived() |
Deprecated.
Sets server received event for current request.
|
void |
setServerReceived(int ipv4,
int port,
java.lang.String clientService) |
Deprecated.
|
void |
setServerReceived(Endpoint client) |
Deprecated.
Like
setServerReceived(), except you can log the network context of the caller, for
example an IP address from the X-Forwarded-For header. |
void |
setServerSend() |
Deprecated.
Sets the server sent event for current thread.
|
void |
setStateCurrentTrace(long traceId,
long spanId,
java.lang.Long parentSpanId,
java.lang.String name) |
Deprecated.
since 3.15 use
setStateCurrentTrace(SpanId, String) |
void |
setStateCurrentTrace(SpanId context,
java.lang.String spanName) |
Deprecated.
Sets the current Trace/Span state.
|
void |
setStateNoTracing() |
Deprecated.
Sets the current Trace/Span state.
|
void |
setStateUnknown(java.lang.String spanName) |
Deprecated.
Sets the current Trace/Span state.
|
create, submitAnnotation, submitAnnotation, submitBinaryAnnotation, submitBinaryAnnotation@Deprecated public static ServerTracer.Builder builder()
Brave.serverTracer()public void clearCurrentSpan()
@Deprecated
public void setStateCurrentTrace(long traceId,
long spanId,
@Nullable
java.lang.Long parentSpanId,
java.lang.String name)
setStateCurrentTrace(SpanId, String)public void setStateCurrentTrace(SpanId context, java.lang.String spanName)
context - includes the trace identifiers extracted from the wirespanName - should not be empty or null.setStateNoTracing(),
setStateUnknown(String)public void setStateNoTracing()
public void setStateUnknown(java.lang.String spanName)
spanName - The name of our current request/span.public void setServerReceived()
setStateCurrentTrace(SpanId, String) , setStateNoTracing() or
setStateUnknown(String).public void setServerReceived(Endpoint client)
setServerReceived(), except you can log the network context of the caller, for
example an IP address from the X-Forwarded-For header.client - represents the client (peer). Set Endpoint.service_name to
"unknown" if unknown.@Deprecated
public void setServerReceived(int ipv4,
int port,
@Nullable
java.lang.String clientService)
setServerReceived(Endpoint)setServerReceived(), except you can log the network context of the caller, for
example an IP address from the X-Forwarded-For header.ipv4 - ipv4 of the client as an int. Ex for 1.2.3.4, it would be (1 << 24) | (2 << 16) | (3 << 8) | 4port - port for client-side of the socket, or 0 if unknownclientService - lowercase name of the callee service or
null if unknownpublic void setServerSend()
Copyright © 2018 OpenZipkin. All rights reserved.