Currently, the consumer code in KafkaCustomConsumer is grabbing the topic/partition/timestamp info from the source ConsumerRecord and adding them as attributes in the event metadata. It would be helpful to also have access to the offset field.
This would allow us to add calls to getMetadata("kafka_offset") in our pipelines, as we use this for internal tracking/auditing. Looking at the code, it seems like it would be relatively easy to add this.
Currently, the consumer code in
KafkaCustomConsumer
is grabbing the topic/partition/timestamp info from the sourceConsumerRecord
and adding them as attributes in the event metadata. It would be helpful to also have access to theoffset
field.This would allow us to add calls to
getMetadata("kafka_offset")
in our pipelines, as we use this for internal tracking/auditing. Looking at the code, it seems like it would be relatively easy to add this.