Package brave.propagation
Class TraceContext.Builder
java.lang.Object
brave.propagation.TraceContext.Builder
- Enclosing class:
- TraceContext
public static final class TraceContext.Builder extends Object
-
Method Summary
Modifier and Type Method Description TraceContext.Builder
addExtra(Object extra)
TraceContext
build()
TraceContext.Builder
clearExtra()
Allows you to controlTraceContext.extra()
explicitly.TraceContext.Builder
debug(boolean debug)
TraceContext.Builder
extra(List<Object> extraList)
Deprecated.Since 5.12, useaddExtra(Object)
TraceContext.Builder
parentId(long parentId)
TraceContext.Builder
parentId(Long parentId)
TraceContext.Builder
sampled(boolean sampled)
TraceContext.Builder
sampled(Boolean sampled)
TraceContext.Builder
sampledLocal(boolean sampledLocal)
TraceContext.Builder
shared(boolean shared)
TraceContext.Builder
spanId(long spanId)
TraceContext.Builder
traceId(long traceId)
TraceContext.Builder
traceIdHigh(long traceIdHigh)
-
Method Details
-
traceIdHigh
- See Also:
TraceContext.traceIdHigh()
-
traceId
- See Also:
TraceContext.traceId()
-
parentId
- See Also:
TraceContext.parentIdAsLong()
-
parentId
- See Also:
TraceContext.parentId()
-
spanId
- See Also:
TraceContext.spanId()
-
sampledLocal
- See Also:
SamplingFlags.sampledLocal()
-
sampled
- See Also:
SamplingFlags.sampled()
-
sampled
- See Also:
SamplingFlags.sampled()
-
debug
- See Also:
SamplingFlags.debug()
-
shared
- See Also:
TraceContext.shared()
-
extra
Deprecated.Since 5.12, useaddExtra(Object)
- Since:
- 4.9
-
clearExtra
Allows you to controlTraceContext.extra()
explicitly.- Since:
- 5.12
-
addExtra
- Since:
- 5.12
- See Also:
TraceContext.extra()
-
build
- Throws:
IllegalArgumentException
- if missing trace ID or span ID
-