Skip to content

Add 'observation-enabled' properties for RabbitMQ #36451

Closed
@garyrussell

Description

@garyrussell

Spring AMQP does not enable Observation by default; if a user only wants Micrometer timers, it is better to use the legacy timers provided by the project, which detects the presence (or not) of a MeterRegistry bean.

However, if a user wants tracing, the observationEnabled property must be set to true; it would be more convenient if Boot provided this as an auto config property.

Furthermore, if Boot can detect that tracing is enabled (not just timers via Observation), then the properties could default to true, if not set by the user. If no such detection is possible, then the properties should remain at their default, false.

The observationEnabled property is available on BaseRabbitListenerContainerFactory and RabbitTemplate.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions