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.BuilderaddExtra(Object extra)TraceContextbuild()TraceContext.BuilderclearExtra()Allows you to controlTraceContext.extra()explicitly.TraceContext.Builderdebug(boolean debug)TraceContext.Builderextra(List<Object> extraList)Deprecated.Since 5.12, useaddExtra(Object)TraceContext.BuilderparentId(long parentId)TraceContext.BuilderparentId(Long parentId)TraceContext.Buildersampled(boolean sampled)TraceContext.Buildersampled(Boolean sampled)TraceContext.BuildersampledLocal(boolean sampledLocal)TraceContext.Buildershared(boolean shared)TraceContext.BuilderspanId(long spanId)TraceContext.BuildertraceId(long traceId)TraceContext.BuildertraceIdHigh(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
-