-
Notifications
You must be signed in to change notification settings - Fork 584
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
Correct kafka prefix #1284
Correct kafka prefix #1284
Conversation
Signed-off-by: clyang82 <[email protected]>
This is a breaking spec change. If the code doesn't align with the spec, the code is wrong, not the spec. |
@embano1 beat you to it! :-) cloudevents/sdk-go#1059 Going to close this PR |
At least for Kafka, I can't see a specific reason (in the Kafka APIs) why it must be |
If there is no specific reason, could we keep consistent with others? I know it will be a breaking spec change. can we do it in a new version? Thanks. |
Will be introduced in the upcoming |
Thanks @embano1. I think we only have confluent implementation in sdk-go. Correct me if I am wrong @yanmxa Since you agree to use |
No, sarama implementation follows the Kafka binding spec which defines
I agreed that there doesn't seem to be a specific need why it must be |
I am fine with |
I'm not quite following why this would be needed/useful for the client because those prefixes/headers are transport related. Can you please elaborate? |
Yes. those prefixed are transport related. but we do not have reasons to have different attribute prefix. If we have the same attribute prefix for all transport, put it into a constants to use by internal and external. just my two cents. Thanks. |
Fixes #
Proposed Changes
ce_
toce-
to keep consistent with the code https://github.com/cloudevents/sdk-go/blob/09883253d24d58054fa6685629facc47a534f040/protocol/kafka_confluent/v2/message.go#L21Release Note