Common application properties
Various properties can be specified inside your application.properties
file, inside your application.yml
file, or as command line switches.
This appendix provides a list of common Spring Cloud Sleuth OTel properties and references to the underlying classes that consume them.
Property contributions can come from additional jar files on your classpath, so you should not consider this an exhaustive list. Also, you can define your own properties. |
Name | Default | Description |
---|---|---|
spring.sleuth.otel.config.instrumentation-name |
|
Instrumentation name to be used to find a Tracer. |
spring.sleuth.otel.config.instrumentation-version |
Instrumentation version to be used to find a Tracer. |
|
spring.sleuth.otel.config.max-attrs |
|
Returns the global default max number of attributes per {@link Span}. |
spring.sleuth.otel.config.max-event-attrs |
|
Returns the global default max number of attributes per event. |
spring.sleuth.otel.config.max-events |
|
Returns the global default max number of events per {@link Span}. |
spring.sleuth.otel.config.max-link-attrs |
|
Returns the global default max number of attributes per link. |
spring.sleuth.otel.config.max-links |
|
Returns the global default max number of link entries per {@link Span}. |
spring.sleuth.otel.config.trace-id-ratio-based |
|
Sets the global default {@code Sampler} value. |
spring.sleuth.otel.exporter.jaeger.enabled |
|
Enables Jaeger exporter. |
spring.sleuth.otel.exporter.jaeger.endpoint |
Sets the Jaeger endpoint to connect to. |
|
spring.sleuth.otel.exporter.jaeger.timeout |
Timeout in millis. |
|
spring.sleuth.otel.exporter.otlp.enabled |
|
Enables OTLP exporter. |
spring.sleuth.otel.exporter.otlp.endpoint |
Sets the OTLP endpoint to connect to. |
|
spring.sleuth.otel.exporter.otlp.headers |
Map of headers to be added. |
|
spring.sleuth.otel.exporter.otlp.timeout |
Timeout in millis. |
|
spring.sleuth.otel.exporter.sleuth-span-filter.enabled |
|
Enables Sleuth span filter. |
spring.sleuth.otel.log.exporter.enabled |
|
Enable log exporter for OTel. |
spring.sleuth.otel.log.slf4j.enabled |
|
Enable slf4j support for OTel. |
spring.sleuth.otel.multiple-tracer-configs-detector-enabled |
|
Enable detection of autoconfiguration for multiple tracers (i.e.: Brave and OTel); only one of them should be used. |
spring.sleuth.otel.processor.batch.exporter-timeout |
Exporter timeout in millis. |
|
spring.sleuth.otel.processor.batch.max-export-batch-size |
Max export batch size. |
|
spring.sleuth.otel.processor.batch.max-queue-size |
Max queue size. |
|
spring.sleuth.otel.processor.batch.schedule-delay |
Schedule delay in millis. |
|
spring.sleuth.otel.propagation.composite-text-map-propagator.enabled |
|
Enable a composite text map propagator that can combine multiple propagation types into a single text map propagator. |
spring.sleuth.otel.propagation.sleuth-baggage.enabled |
|
Enable propagating baggage in a Sleuth compatible way (baggage key & value pair means e.g. a key & value HTTP pair). |
spring.sleuth.otel.resource.attributes |
Map of custom resource attributes (e.g. service.version) |
|
spring.sleuth.otel.resource.enabled |
|
Enables default {@link Resource} implementations. |
spring.zipkin.activemq.message-max-bytes |
|
Maximum number of bytes for a given message with spans sent to Zipkin over ActiveMQ. |
spring.zipkin.activemq.queue |
|
Name of the ActiveMQ queue where spans should be sent to Zipkin. |
spring.zipkin.kafka.topic |
|
Name of the Kafka topic where spans should be sent to Zipkin. |
spring.zipkin.rabbitmq.addresses |
Addresses of the RabbitMQ brokers used to send spans to Zipkin |
|
spring.zipkin.rabbitmq.queue |
|
Name of the RabbitMQ queue where spans should be sent to Zipkin. |
spring.zipkin.sender.type |
Means of sending spans to Zipkin. |