Package brave.propagation
Class TraceIdContext
java.lang.Object
brave.propagation.SamplingFlags
brave.propagation.TraceIdContext
public final class TraceIdContext extends SamplingFlags
Contains inbound trace ID and sampling flags, used when users control the root trace ID, but not
the span ID (ex Amazon X-Ray or other correlation).
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTraceIdContext.Builder -
Field Summary
-
Method Summary
Modifier and Type Method Description booleanequals(Object o)Only includes mandatory fieldstraceIdHigh()andtraceId()inthashCode()Only includes mandatory fieldstraceIdHigh()andtraceId()static TraceIdContext.BuildernewBuilder()TraceIdContext.BuildertoBuilder()StringtoString()Returns$traceIdlongtraceId()Unique 8-byte identifier for a trace, set on all spans within it.longtraceIdHigh()When non-zero, the trace containing this span uses 128-bit trace identifiers.
-
Method Details
-
newBuilder
-
traceIdHigh
public long traceIdHigh()When non-zero, the trace containing this span uses 128-bit trace identifiers. -
traceId
public long traceId()Unique 8-byte identifier for a trace, set on all spans within it. -
toBuilder
-
toString
Returns$traceId- Overrides:
toStringin classSamplingFlags
-
equals
Only includes mandatory fieldstraceIdHigh()andtraceId() -
hashCode
public int hashCode()Only includes mandatory fieldstraceIdHigh()andtraceId()
-