Automatically configure Spring Kafka's observation convention beans
This automatically registers KafkaListenerObservationConvention on the
container factory, and KafkaTemplateObservationConvention on the
Kafka template.
Closes gh-48914
NOTE: If the property configprop:spring.kafka.producer.transaction-id-prefix[] is defined, a javadoc:org.springframework.kafka.transaction.KafkaTransactionManager[] is automatically configured.
Also, if a javadoc:org.springframework.kafka.support.converter.RecordMessageConverter[] bean is defined, it is automatically associated to the auto-configured javadoc:org.springframework.kafka.core.KafkaTemplate[].
If there's a bean of type `KafkaTemplateObservationConvention` in the context, it is automatically registered on the `KafkaTemplate`.
[[messaging.kafka.receiving]]
@ -52,6 +54,8 @@ If only a javadoc:org.springframework.kafka.support.converter.RecordMessageConve
@@ -52,6 +54,8 @@ If only a javadoc:org.springframework.kafka.support.converter.RecordMessageConve
TIP: A custom javadoc:org.springframework.kafka.transaction.ChainedKafkaTransactionManager[] must be marked javadoc:org.springframework.context.annotation.Primary[format=annotation] as it usually references the auto-configured javadoc:org.springframework.kafka.transaction.KafkaTransactionManager[] bean.
If there's a bean of type `KafkaListenerObservationConvention` in the context, it is automatically registered on the container factory.
@ -82,6 +83,8 @@ public class ConcurrentKafkaListenerContainerFactoryConfigurer {
@@ -82,6 +83,8 @@ public class ConcurrentKafkaListenerContainerFactoryConfigurer {
@ -186,6 +189,14 @@ public class ConcurrentKafkaListenerContainerFactoryConfigurer {
@@ -186,6 +189,14 @@ public class ConcurrentKafkaListenerContainerFactoryConfigurer {
@ -249,6 +260,7 @@ public class ConcurrentKafkaListenerContainerFactoryConfigurer {
@@ -249,6 +260,7 @@ public class ConcurrentKafkaListenerContainerFactoryConfigurer {