public abstract class TraceIdContext extends SamplingFlags
| Modifier and Type | Class | Description |
|---|---|---|
static class |
TraceIdContext.Builder |
DEBUG, EMPTY, NOT_SAMPLED, SAMPLED| Modifier and Type | Method | Description |
|---|---|---|
static TraceIdContext.Builder |
newBuilder() |
|
abstract 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.
|
abstract TraceIdContext.Builder |
toBuilder() |
|
String |
toString() |
Returns
$traceId |
abstract long |
traceId() |
Unique 8-byte identifier for a trace, set on all spans within it.
|
abstract long |
traceIdHigh() |
When non-zero, the trace containing this span uses 128-bit trace identifiers.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdebugpublic static TraceIdContext.Builder newBuilder()
public abstract long traceIdHigh()
public abstract long traceId()
@Nullable public abstract Boolean sampled()
SamplingFlagssampled in class SamplingFlagspublic abstract TraceIdContext.Builder toBuilder()
Copyright © 2017 OpenZipkin. All rights reserved.