public abstract class InternalPropagation extends Object
brave.propagation so they can be used from outside packages.
The only implementation is in SamplingFlags.
Inspired by okhttp3.internal.Internal.
| Modifier and Type | Field | Description |
|---|---|---|
static int |
FLAG_DEBUG |
|
static int |
FLAG_SAMPLED |
A flags bitfield is used internally inside
TraceContext as opposed to several booleans. |
static int |
FLAG_SAMPLED_LOCAL |
|
static int |
FLAG_SAMPLED_SET |
|
static int |
FLAG_SHARED |
|
static InternalPropagation |
instance |
| Constructor | Description |
|---|---|
InternalPropagation() |
| Modifier and Type | Method | Description |
|---|---|---|
abstract int |
flags(SamplingFlags flags) |
|
abstract TraceContext |
newTraceContext(int flags,
long traceIdHigh,
long traceId,
long parentId,
long spanId,
List<Object> extra) |
|
static int |
sampled(boolean sampled,
int flags) |
|
abstract TraceContext |
withExtra(TraceContext context,
List<Object> immutableExtra) |
TraceContext is immutable so you need to read the result
|
abstract TraceContext |
withFlags(TraceContext context,
int flags) |
TraceContext is immutable so you need to read the result
|
public static final int FLAG_SAMPLED
TraceContext as opposed to several booleans.
This reduces the size of the object and allows us to set or check a couple states at once.public static final int FLAG_SAMPLED_SET
public static final int FLAG_DEBUG
public static final int FLAG_SHARED
public static final int FLAG_SAMPLED_LOCAL
public static InternalPropagation instance
public abstract int flags(SamplingFlags flags)
public static int sampled(boolean sampled,
int flags)
public abstract TraceContext newTraceContext(int flags, long traceIdHigh, long traceId, long parentId, long spanId, List<Object> extra)
public abstract TraceContext withExtra(TraceContext context, List<Object> immutableExtra)
public abstract TraceContext withFlags(TraceContext context, int flags)
Copyright © 2018 OpenZipkin. All rights reserved.