-
Notifications
You must be signed in to change notification settings - Fork 1
Replace trace serialization from proto to json #27
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
Replace trace serialization from proto to json #27
Conversation
serialized_traces_data = traces_data.SerializeToString() | ||
serialized_traces_data = json_format.MessageToJson(traces_data) | ||
|
||
# FIXME/HACK replace serialized traceId and spanId values as string comparison |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not the happiest solution but built-in json serialization does not serialize trace_id and span_id from span according to partial collector expectations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still, i prefer this over manual serialization where a lot of things can be missed/go wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
adding a test for a hack seems silly to me since this is using built-in json serialization.
Co-authored-by: Jonathan Giannuzzi <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.