On producer side add to your application.properties file:
spring.kafka.template.observation-enabled=true
On consumer side add to your application.properties file:
spring.kafka.listener.observation-enabled=true
Assuming you have set up the Spring boot 3 obersvations correctly.