Decides whether to start a new trace based on request properties such as an HTTP path.
| Modifier and Type | Class and Description |
|---|---|
| public static enum | SamplerFunction.Constants
Constant |
| Modifier and Type | Method and Description |
|---|---|
| public static < type of the input, for example a request or method T> SamplerFunction | |
| public static < type of the input, for example a request or method T> SamplerFunction | |
| public static < type of the input, for example a request or method T> SamplerFunction | |
| public Boolean | Returns: true to sample a new trace or false to deny. null
defers the decision.parameter to evaluate for a sampling decision. arg)null input
results in a null resultReturns an overriding sampling decision for a new trace. |
| alwaysSample | back to summary |
|---|---|
| public static <T> SamplerFunction Always sampling
| |
| deferDecision | back to summary |
|---|---|
| public static <T> SamplerFunction Always deferring
| |
| neverSample | back to summary |
|---|---|
| public static <T> SamplerFunction Never sampling
| |
| trySample | back to summary |
|---|---|
| public Boolean trySample(T arg) Returns an overriding sampling decision for a new trace. | |
SamplerFunctions.
| Modifier and Type | Field and Description |
|---|---|
| public static final SamplerFunction. | ALWAYS_SAMPLE
Will always sample this trace. |
| public static final SamplerFunction. | DEFER_DECISION
Always defers sampling decision. |
| public static final SamplerFunction. | NEVER_SAMPLE
Will never sample this trace. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static SamplerFunction. | |
| public static SamplerFunction. |
| ALWAYS_SAMPLE | back to summary |
|---|---|
| public static final SamplerFunction. Will always sample this trace. | |
| DEFER_DECISION | back to summary |
|---|---|
| public static final SamplerFunction. Always defers sampling decision. | |
| NEVER_SAMPLE | back to summary |
|---|---|
| public static final SamplerFunction. Will never sample this trace. | |
| Constants | back to summary |
|---|---|
| private Constants() | |
| valueOf | back to summary |
|---|---|
| public static SamplerFunction. | |
| values | back to summary |
|---|---|
| public static SamplerFunction. | |