Polish JMS observation instrumentation

See gh-30335
Closes gh-31172
This commit is contained in:
Johnny Lim
2023-09-05 21:20:12 +09:00
committed by Brian Clozel
parent adb73389a8
commit 884975e094
3 changed files with 9 additions and 5 deletions

View File

@@ -176,7 +176,7 @@ but note that `@JmsListener` annotations can refer to specific container factory
In all cases, Observations are only recorded if the observation registry is configured on the container factory.
Similar observations are recorded with `JmsTemplate` when messages are processed by a `MessageListener`.
Such listeners are set on a `MessageConsumer` within a session callback (see `JmsTemplate.execute(SessionCallback<T>)`).
Such listeners are set on a `MessageConsumer` within a session callback (see `JmsTemplate.execute(SessionCallback<T>)`).
This observation uses the `io.micrometer.core.instrument.binder.jms.DefaultJmsProcessObservationConvention` by default, backed by the `io.micrometer.core.instrument.binder.jms.JmsProcessObservationContext`.