-
Notifications
You must be signed in to change notification settings - Fork 256
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
Review Data Model (Protos) #11
Comments
Current Protos:https://github.com/bogdandrutu/openconsensus/tree/master/sdk/src/main/proto Related Metadata Discussions:https://github.com/bogdandrutu/openconsensus/issues?q=metadata |
I chatted with @iredelmeier about the model and a concern about using protobuf came up. If a language does not support protobuf or a user doesn't want to include the protobuf library due to size (e.g. browser javascript), there needs to be a common way to serialize spans and metrics using something like JSON. Clear mappings to JSON exist for most protobuf types, however, the protobuf definitions in the SDK heavily uses |
@bg451 good point, and it's not just JSON, in some languages mapping oneof to types is exceptionally ugly. In Jaeger protos we decided to live with minor possible ambiguities of the data rather than have to deal with oneof. |
I think the oneof implementation is as simple as in the JSON you enforce to send only one of these fields. I may be wrong but I can ask. |
It's a bit unfortunate that there isn't a great way to attach structured nested metadata as attributes. Perhaps consider supporting Any values as a means of extension? |
@tmc we discuss to add some support of AttributeValue to be another Map<String, AttributeValue> is that enough? We do not want to add Any because that means that a backend cannot analyze the data, maybe not even display them. |
I imagine that for many use cases allowing maps would suffice. |
Sorry to step into this conversation but is the idea of this project that all other language implementations to use this definition as a basis of is it only for the Java one? I do not see it in use as a submodule for the node-js one |
Seems to be complete. See open-telemetry/oteps#59 where we extensively reviewed it. Closing. |
Everyone, please review the current protobuf and metadata definitions and leave comments here.
The text was updated successfully, but these errors were encountered: