Package io.micronaut.tracing.brave
Class BraveTracerConfiguration.SamplerConfiguration
java.lang.Object
io.micronaut.tracing.brave.BraveTracerConfiguration.SamplerConfiguration
- Enclosing class:
- BraveTracerConfiguration
@ConfigurationProperties("sampler")
@Requires(classes=brave.sampler.CountingSampler.class) @Requires(missingBeans=brave.sampler.Sampler.class)
public static class BraveTracerConfiguration.SamplerConfiguration
extends Object
The sampler configuration.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
Get sampler probability.void
setProbability
(float probability) Sets the sampler probability used by the defaultCountingSampler
.
-
Constructor Details
-
SamplerConfiguration
public SamplerConfiguration()
-
-
Method Details
-
getProbability
public float getProbability()Get sampler probability. A value of 1.0 indicates to sample all requests. A value of 0.1 indicates to sample 10% of requests.- Returns:
- probability
-
setProbability
public void setProbability(float probability) Sets the sampler probability used by the defaultCountingSampler
. A value of 1.0 indicates to sample all requests. A value of 0.1 indicates to sample 10% of requests.- Parameters:
probability
- the probability
-