TraceContext
, TraceIdContext
public class SamplingFlags extends Object
Modifier and Type | Class | Description |
---|---|---|
static class |
SamplingFlags.Builder |
Deprecated.
prefer using constants. This will be removed in Brave v6
|
Modifier and Type | Field | Description |
---|---|---|
static SamplingFlags |
DEBUG |
|
static SamplingFlags |
EMPTY |
|
static SamplingFlags |
NOT_SAMPLED |
|
static SamplingFlags |
SAMPLED |
Modifier and Type | Method | Description |
---|---|---|
SamplingFlags |
build() |
|
boolean |
debug() |
True is a request to store this span even if it overrides sampling policy.
|
Boolean |
sampled() |
Sampled means send span data to Zipkin (or something else compatible with its data).
|
String |
toString() |
public static final SamplingFlags EMPTY
public static final SamplingFlags NOT_SAMPLED
public static final SamplingFlags SAMPLED
public static final SamplingFlags DEBUG
public SamplingFlags build()
@Nullable public final Boolean sampled()
Here are the valid options:
Once set to true or false, it is expected that this decision is propagated and honored downstream.
Note: sampling does not imply the trace is invisible to others. For example, a common practice is to generate and propagate identifiers always. This allows other systems, such as logging, to correlate even when the tracing system has no data.
public final boolean debug()
Copyright © 2018 OpenZipkin. All rights reserved.