Auto-configure ObservationRegistry on JmsTemplate
Spring Boot auto-configures both a `JmsTemplate` and a `JmsMessagingTemplate`. As of Spring Framework 6.2, JMS has observability support when publishing messages. This commit creates a bean post-processor that configures an `ObservationRegistry` on the template, if the registry is present. Closes gh-37388
This commit is contained in:
@@ -739,6 +739,13 @@ Auto-configuration enables the instrumentation of all available `ThreadPoolTaskE
|
||||
Metrics are tagged by the name of the executor, which is derived from the bean name.
|
||||
|
||||
|
||||
[[actuator.metrics.supported.jms]]
|
||||
==== JMS Metrics
|
||||
Auto-configuration enables the instrumentation of all available `JmsTemplate` beans.
|
||||
`JmsMessagingTemplate` instances built with instrumented `JmsTemplate` beans will also record observations.
|
||||
See the {spring-framework-docs}/integration/observability.html#observability.jms.publish[Spring Framework reference documentation for more information on produced observations].
|
||||
|
||||
|
||||
|
||||
[[actuator.metrics.supported.spring-mvc]]
|
||||
==== Spring MVC Metrics
|
||||
|
||||
Reference in New Issue
Block a user