This version is still in development and is not considered stable yet. For the latest stable version, please use Spring AMQP 3.2.0!

Micrometer Observation

Using Micrometer for observation is now supported, since version 3.0, for the RabbitTemplate and listener containers.

Set observationEnabled on each component to enable observation; this will disable Micrometer Timers because the timers will now be managed with each observation. When using annotated listeners, set observationEnabled on the container factory.

Refer to Micrometer Tracing for more information.

To add tags to timers/traces, configure a custom RabbitTemplateObservationConvention or RabbitListenerObservationConvention to the template or listener container, respectively.

The default implementations add the name tag for template observations and listener.id tag for containers.

You can either subclass DefaultRabbitTemplateObservationConvention or DefaultRabbitListenerObservationConvention or provide completely new implementations.

See Micrometer Observation Documentation for more details.

Due to ambiguity in how traces should be handled in a batch, observations are NOT created for Batch Listener Containers.