Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SMT to Insert Source Partition/Offset Metadata into Headers #14

Conversation

davidsloan
Copy link
Collaborator

@davidsloan davidsloan commented Jun 18, 2024

This pull request introduces the InsertSourcePartitionOrOffsetValue Kafka Connect transformation, designed to insert headers based on partition or offset values from SourceRecords. Users can configure offset.fields and partition.fields to specify which fields to extract as headers, with optional prefixes (offset.prefix and partition.prefix) for header keys. This transformation enhances metadata management by allowing seamless integration of partition and offset data into Kafka records, facilitating better downstream processing and analysis.

(I also tweaked the pom to allow java 11 because being limited to 1.8 features was truly unbearable.)

@davidsloan davidsloan changed the title Feat/insert source partition of offset value SMT to Insert Source Partition/Offset Metadata into Headers Jun 18, 2024
@andrewstevenson andrewstevenson merged commit 61f1e45 into lensesio:main Jun 21, 2024
2 checks passed
@davidsloan davidsloan deleted the feat/insert-source-partition-of-offset-value branch June 24, 2024 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants