-
Notifications
You must be signed in to change notification settings - Fork 648
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
'None' values cause exporting to fail #3677
Comments
There's probably two issues at hand here:
|
BTW per python doc the first argument should be a string https://docs.python.org/3/library/logging.html#logging.Logger.debug
|
Attribute values of null are not valid and attempting to set a null value is undefined behavior. https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute |
Cheers, thanks for the answers :) |
Hey, it looks like the upstream specification allows for null values as of version 1.31.0 now. Is this something that might come to the library at some stage do ye think? Thanks in advance. |
I'd be in favor of taking another look at this. As mentioned above, it seems that there are two issues -- one is what does it mean for a log to be out of spec, and the other is what should be done with a batch of logs if just one of them is out of spec (I think it would be nice to keep the good ones). |
Describe your environment
Steps to reproduce
What is the expected behavior?
I expected to see all my logs in the Collector, including a log for the
{"hello": None}
object that fails to be encoded at the momentWhat is the actual behavior?
As indicated by step 3 above, the exporter fails to encode the logs, specifically the None value. As we are performing batch processing, this fails the entire batch, causing the rest of the logs to never arrive at the Collector
Additional context
The text was updated successfully, but these errors were encountered: