How to get config of Producer (e.g. CLI, C3)

I want to get config of Producer after produce messages to Kafka.

Thanks in advance for any help that you are able to provide.

Ooo, fun! Unfortunately, I believe that unless you’re storing that information as part of the message header (or doing some other tracing protocol), there’s no way to look at a message and know by default what the producer configs were at the time that message was written.

That being said, you can get better insight into the current producers and consumers (and then dive into that client’s configuration) using the AdminClient. Hope that helps.