IBM / sarama

Sarama is a Go library for Apache Kafka.
MIT License
11.21k stars 1.73k forks source link

feat: add metadata field to consumer message #2914

Open fufuceng opened 1 month ago

fufuceng commented 1 month ago

Hello everyone!

I've been using sarama for a while both in production and in my personal projects. One of the issues I'm lacking is that we don't have the chance to transfer information in the message we consume. I added the Metadata field in the produced messages into the consumed message structure. I think it will be very useful especially for tracing.

I am waiting for your comments, thanks in advance.