-
Notifications
You must be signed in to change notification settings - Fork 894
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
Add support for empty values in Logs Data Model #3853
Conversation
@jack-berg @tigrannajaryan I updated the PR. PTAL |
I believe this should be treated as a backward compatible change because:
Does anyone think this is an incorrect interpretation of our compatibility rules? |
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.
makes sense to me because it's needed for faithfully bridging existing logging systems
Fixes open-telemetry#3835 ## Changes - Define empty value as an acceptable type for `any` I think that adding support for additional type is not a breaking change. I also think that users may also want to preserve the empty values that are in structured data (e.g. record body and attributes) that they emit in their applications. E.g. `slog` a structured logging package which is part of Go standard library accepts `nil` (null, empty value) as a valid attribute value. The Bridge API should do its best to carry over as much logging data as possible until it is can be passed via OTLP . See: https://go.dev/play/p/KN5Wea6h_f-
Fixes #3835
Changes
any
I think that adding support for additional type is not a breaking change. I also think that users may also want to preserve the empty values that are in structured data (e.g. record body and attributes) that they emit in their applications.
E.g.
slog
a structured logging package which is part of Go standard library acceptsnil
(null, empty value) as a valid attribute value. The Bridge API should do its best to carry over as much logging data as possible until it is can be passed via OTLP . See: https://go.dev/play/p/KN5Wea6h_f-