| Modifier and Type | Method and Description |
|---|---|
static Sampler |
alwaysSample()
|
static Sampler |
neverSample()
|
static Sampler |
probabilitySampler(double probability)
Returns a
Sampler that makes a "yes" decision with a given probability. |
public static Sampler alwaysSample()
Sampler that always makes a "yes" decision on Span sampling.public static Sampler neverSample()
Sampler that always makes a "no" decision on Span sampling.public static Sampler probabilitySampler(double probability)
Sampler that makes a "yes" decision with a given probability.probability - The desired probability of sampling. Must be within [0.0, 1.0].Sampler that makes a "yes" decision with a given probability.IllegalArgumentException - if probability is out of range