public final class TraceIdContext extends SamplingFlags
| Modifier and Type | Class | Description |
|---|---|---|
static class |
TraceIdContext.Builder |
DEBUG, EMPTY, NOT_SAMPLED, SAMPLED| Modifier and Type | Method | Description |
|---|---|---|
boolean |
debug() |
True is a request to store this span even if it overrides sampling policy.
|
boolean |
equals(Object o) |
Only includes mandatory fields
traceIdHigh() and traceId() |
int |
hashCode() |
Only includes mandatory fields
traceIdHigh() and traceId() |
static TraceIdContext.Builder |
newBuilder() |
|
Boolean |
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.
|
TraceIdContext.Builder |
toBuilder() |
|
String |
toString() |
Returns
$traceId |
long |
traceId() |
Unique 8-byte identifier for a trace, set on all spans within it.
|
long |
traceIdHigh() |
When non-zero, the trace containing this span uses 128-bit trace identifiers.
|
public static TraceIdContext.Builder newBuilder()
public long traceIdHigh()
public long traceId()
@Nullable public Boolean sampled()
sampled in class SamplingFlagspublic boolean debug()
debug in class SamplingFlagspublic TraceIdContext.Builder toBuilder()
public boolean equals(Object o)
traceIdHigh() and traceId()public int hashCode()
traceIdHigh() and traceId()Copyright © 2018 OpenZipkin. All rights reserved.