You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Batch listener does not support observation (#3047)
Fixes: #3047
* because of observation does not support batch listener, add properties `observationEnabled` and replace
`this.containerProperties.isObservationEnabled()` for `KafkaMessageListenerContainer.ListenerConsumer`, when
batch listener set false to `observationEnabled`.
* add notice in micrometer.adoc
* add observationEnabled and replace containerProperties.isObservationEnabled() in
KafkaMessageListenerContainer.ListenerConsumer
**Auto-cherry-pick to `3.1.x`**
Copy file name to clipboardExpand all lines: spring-kafka-docs/src/main/antora/modules/ROOT/pages/kafka/micrometer.adoc
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -95,7 +95,9 @@ Using Micrometer for observation is now supported, since version 3.0, for the `K
95
95
96
96
Set `observationEnabled` to `true` on the `KafkaTemplate` and `ContainerProperties` to enable observation; this will disable xref:kafka/micrometer.adoc[Micrometer Timers] because the timers will now be managed with each observation.
97
97
98
-
Refer to https://docs.micrometer.io/tracing/reference/index.html[Micrometer Tracing] for more information.
98
+
IMPORTANT: Micrometer Observation does not support batch listener; this will enable Micrometer Timers
99
+
100
+
Refer to https://micrometer.io/docs/tracing[Micrometer Tracing] for more information.
99
101
100
102
To add tags to timers/traces, configure a custom `KafkaTemplateObservationConvention` or `KafkaListenerObservationConvention` to the template or listener container, respectively.
0 commit comments