[Queston] Kafka batch and headers #2234
-
Beta Was this translation helpful? Give feedback.
Answered by
mihaitodor
Nov 12, 2023
Replies: 1 comment
-
Hey @ghstahl 👋 It's not entirely clear what kind of errors you're getting, but the only case in which Moving to Discussions as per #2026. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ghstahl
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 usingroot.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 doingroot.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.