You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the Kafka source plugin does not retrieve key, partition, offset or header information from Kafka messages, even though the underlying library (github.com/segmentio/kafka-go) already supports these parameters. This omission prevents users from accessing important metadata that can be crucial for debugging, routing, or processing logic.
Proposed Solution:
Extend the existing Kafka source plugin to include the retrieval of:
Message Key
Partition
Offset
Headers
Topic
Update any existing data structures or interfaces within the plugin to store and return these additional metadata fields.
Ensure that backward compatibility is preserved if the plugin is already being used without this metadata.
Example Reference: Below is a sample code snippet using kafka-go that demonstrates how to read the topic, partition, offset, key, value and headers:
Currently, the Kafka source plugin does not retrieve key, partition, offset or header information from Kafka messages, even though the underlying library (github.com/segmentio/kafka-go) already supports these parameters. This omission prevents users from accessing important metadata that can be crucial for debugging, routing, or processing logic.
Proposed Solution:
Extend the existing Kafka source plugin to include the retrieval of:
Update any existing data structures or interfaces within the plugin to store and return these additional metadata fields.
Ensure that backward compatibility is preserved if the plugin is already being used without this metadata.
Example Reference: Below is a sample code snippet using kafka-go that demonstrates how to read the topic, partition, offset, key, value and headers:
Event on kafka topic:
output:
The text was updated successfully, but these errors were encountered: