Skip to content

[Queston] Kafka batch and headers #2234

Answered by mihaitodor
ghstahl asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @ghstahl 👋 It's not entirely clear what kind of errors you're getting, but the only case in which root.value = this will fail is when the message you're getting from Kafka isn't valid JSON. If this is the case, then using root.value = content() should do the trick. Since you're archiving the batches to binary blobs, then the metadata of all but the first message gets discarded, so doing root.headers = @ is a good way to store the metadata in each message so it gets preserved. Hope that helps.

Moving to Discussions as per #2026.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ghstahl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2233 on November 12, 2023 21:52.