Open
Description
Spring Kafka provides KafkaStreamsMicrometerListener
, which currently has to be added to the StreamsBuilderFactoryBean
programmatically. There should be a configuration/property that supports adding a default listener automatically. This is similar to spring.kafka.listener.observation-enabled
and spring.kafka.template.observation-enabled
. Perhaps, something like spring.kafka.streams.observation-enabled
? For now, it only adds the metrics; when the feature is ready, it can also auto-configure traces (#2635 and micrometer-metrics/micrometer#3713) like it happens for KafkaTemplate and KafkaListener.