@ConfigurationProperties(value="sampler") @Requires(classes=brave.sampler.CountingSampler.class) @Requires(missingBeans=brave.sampler.Sampler.class) public static class BraveTracerConfiguration.SamplerConfiguration extends java.lang.Object
Constructor and Description |
---|
SamplerConfiguration() |
Modifier and Type | Method and Description |
---|---|
float |
getProbability()
Get sampler probability.
|
void |
setProbability(float probability)
Sets the sampler probability used by the default
CountingSampler . |
public float getProbability()
public void setProbability(float probability)
CountingSampler
. A value of 1.0
indicates to sample all requests. A value of 0.1 indicates to sample 10% of requests.probability
- The probability