| Package | Description |
|---|---|
| com.github.kristofa.brave | |
| com.twitter.zipkin.gen |
| Modifier and Type | Method and Description |
|---|---|
Span |
LocalSpanState.getCurrentLocalSpan()
Gets the Span for the local request that was started as part of current request.
|
ServerSpan |
ServerSpanState.getCurrentServerSpan()
Gets the Span for the server request we are currently part of.
|
ServerSpan |
ServerSpanThreadBinder.getCurrentServerSpan()
This should be called in the thread in which the request was received before executing code in new threads.
|
Long |
SpanId.getParentSpanId()
Deprecated.
|
abstract Boolean |
ServerSpan.getSample()
Indicates if we need to sample this request or not.
|
abstract Boolean |
TraceData.getSample()
Indication of request should be sampled or not.
|
abstract Span |
ServerSpan.getSpan()
Gets the Trace/Span context.
|
abstract SpanId |
TraceData.getSpanId()
Span id.
|
Long |
SpanId.nullableParentId()
Returns null when this is a root span.
|
Boolean |
SpanId.sampled()
Should we sample this request or not? True means sample, false means don't, null means we defer
decision to someone further down in the stack.
|
Endpoint |
ClientRequestAdapter.serverAddress()
Provides the remote server address information for additional tracking.
|
Span |
SpanAndEndpoint.span()
Gets the span to which to add annotations.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ClientRequestAdapter.addSpanIdToRequest(SpanId spanId)
Enrich the request with the Spanid so we pass the state to the
service we are calling.
|
static SpanId |
SpanId.create(long traceId,
long spanId,
Long parentSpanId)
Deprecated.
Please use
SpanId.Builder |
SpanId.Builder |
SpanId.Builder.parentId(Long parentId)
If your trace ids are not span ids, you must call this method to indicate absent parent.
|
TraceData.Builder |
TraceData.Builder.sample(Boolean sample) |
SpanId.Builder |
SpanId.Builder.sampled(Boolean sampled) |
void |
ClientTracer.setClientSent(int ipv4,
int port,
String serviceName)
Like
ClientTracer.setClientSent(), except you can log the network context of the destination. |
void |
ServerTracer.setServerReceived(int ipv4,
int port,
String clientService)
Like
ServerTracer.setServerReceived(), except you can log the network context of the caller, for
example an IP address from the X-Forwarded-For header. |
void |
ServerTracer.setStateCurrentTrace(long traceId,
long spanId,
Long parentSpanId,
String name)
Sets the current Trace/Span state.
|
void |
ServerTracer.setStateCurrentTrace(long traceId,
long spanId,
Long parentSpanId,
String name)
Sets the current Trace/Span state.
|
TraceData.Builder |
TraceData.Builder.spanId(SpanId spanId) |
| Modifier and Type | Field and Description |
|---|---|
Short |
Endpoint.port
IPv4 port
Note: this is to be treated as an unsigned integer, so watch for negatives.
|
| Modifier and Type | Method and Description |
|---|---|
static Annotation |
Annotation.create(long timestamp,
String value,
Endpoint endpoint) |
static BinaryAnnotation |
BinaryAnnotation.create(String key,
byte[] value,
AnnotationType type,
Endpoint endpoint) |
static BinaryAnnotation |
BinaryAnnotation.create(String key,
String value,
Endpoint endpoint)
String values are the only queryable type of binary annotation.
|
Copyright © 2016. All rights reserved.