TraceContext, TraceIdContextpublic abstract class SamplingFlags extends Object
| Modifier and Type | Class | Description |
|---|---|---|
static class |
SamplingFlags.Builder |
| Modifier and Type | Field | Description |
|---|---|---|
static SamplingFlags |
DEBUG |
|
static SamplingFlags |
EMPTY |
|
static SamplingFlags |
NOT_SAMPLED |
|
static SamplingFlags |
SAMPLED |
| Modifier and Type | Method | Description |
|---|---|---|
abstract boolean |
debug() |
True is a request to store this span even if it overrides sampling policy.
|
abstract Boolean |
sampled() |
Should we sample this request or not? True means sample, false means don't, null means we defer
decision to someone further down in the stack.
|
public static final SamplingFlags EMPTY
public static final SamplingFlags SAMPLED
public static final SamplingFlags NOT_SAMPLED
public static final SamplingFlags DEBUG
@Nullable public abstract Boolean sampled()
public abstract boolean debug()
Copyright © 2017 OpenZipkin. All rights reserved.