You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 19, 2025. It is now read-only.
The protobuffer has support for marshaling protobuffer messages as json: google.golang.org/protobuf/encoding/protojson
For some popular tools, like logstash (that are more text oriented), having json would be a better option as message format. (See logstash-plugins/logstash-codec-protobuf#15). At least it will make it a lot easier to share data between (legacy) systems.
Basically the impact would be minimum: in the Kafka transport the protobuffer message is marshaled as json format instead of wire format based on a flag. Fields of type bytes are then converted as base64 strings which is, for some systems, safer.
I've implemented a working version for this: gjelu@e2a0c56
Some extra required changes:
I am using protojson from the protobuf APIv2, so I need to convert the v1 message to a v2 message.
The protobuffer has support for marshaling protobuffer messages as json: google.golang.org/protobuf/encoding/protojson
For some popular tools, like logstash (that are more text oriented), having json would be a better option as message format. (See logstash-plugins/logstash-codec-protobuf#15). At least it will make it a lot easier to share data between (legacy) systems.
Basically the impact would be minimum: in the Kafka transport the protobuffer message is marshaled as json format instead of wire format based on a flag. Fields of type bytes are then converted as base64 strings which is, for some systems, safer.
I've implemented a working version for this: gjelu@e2a0c56
Some extra required changes:
I can do a PR if it's feasible that this can be accepted? Or if you have any extra comments on this?
The text was updated successfully, but these errors were encountered: