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
build()
TraceContext.Builder
debug(boolean debug)
TraceContext.Builder
extra(List<Object> extra)
Shares the input with the builder, replacing any current data in the builder.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
Shares the input with the builder, replacing any current data in the builder.- See Also:
TraceContext.extra()
-
build
-