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 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 default CountingSampler. 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