Jaeger Configuration

There are many configuration options available for the Jaeger client that sends Spans to Jaeger, and they are generally exposed via the JaegerConfiguration class. Refer to the Javadoc for available options.

Below is an example of customizing JaegerConfiguration configuration:

Customizing Jaeger Configuration

  1. tracing:
  2. jaeger:
  3. enabled: true
  4. sampler:
  5. probability: 0.5
  6. sender:
  7. agentHost: foo
  8. agentPort: 5775
  9. reporter:
  10. flushInterval: 2000
  11. maxQueueSize: 200

You can also optionally dependency-inject common configuration classes into JaegerConfiguration such as io.jaegertracing.Configuration.SamplerConfiguration just by defining them as beans. See the API for JaegerConfiguration for available injection points.