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

issue-43: [WIP] headers added #185

Closed
wants to merge 1 commit into from
Closed

issue-43: [WIP] headers added #185

wants to merge 1 commit into from

Conversation

scarbo87
Copy link
Contributor

I tried to implement #43 , but failed.
Messages are sent to Kafka, but there are no headers.
Have any ideas?

@@ -16,6 +16,12 @@ func crc32OfMessage(magicByte int8, attributes int8, timestamp int64, key []byte
}
b.writeBytes(key)
b.writeBytes(value)

b.writeArray(len(headers), func(i int) {
b.writeBytes(headers[i].Key)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried the option when the key is a string: https://kafka.apache.org/documentation/#record
But it also does not work

@achille-roussel
Copy link
Contributor

Thanks for you contribution! We actually have another contributor who's been working on adding this as part of a bigger task to support v2 of the message format, see #163

We're close to ready to merge on that PR, please let us know if it fits your use case or if there are missing features that you'd like to see added there!

@scarbo87
Copy link
Contributor Author

thanks for the info, this is exactly what i need

@scarbo87 scarbo87 closed this Jan 28, 2019
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