-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[exporter/awscloudwatchlogs] Inf/NaN attribute values will cause JSON marshal failure #30332
Comments
Pinging code owners for exporter/awscloudwatchlogs: @boostchicken @bryan-aguilar @rapphil. See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Pinging code owners for exporter/awsemf: @Aneurysm9 @shaochengwang @mxiamxia @bryan-aguilar. See Adding Labels via Comments if you do not have permissions to add labels yourself. |
I am not sure what the correct solution is here, but I would like this issue to exist just in case any user runs into these errors with the awsemf or awscloudwatchlogs exporter. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been closed as inactive because it has been stale for 120 days with no activity. |
Reading this section of code made me wonder what would happen there was an attribute with
Double
type andMath.Inf()
value.With slightly modification to your PR I saw that the JSON marshaling would fail.
We have seen this JSON marshaling failure before in the EMF Exporter when a metric is processed with
Inf
orNaN
values. In the EMF Exporter we completely drop the metric.I think this "issue" is outside the scope of the PR but should at least be noted somewhere. At minumum I think this affects the
awsemfexporter
andawscloudwatchlogs
exporter. I think this would also affect any exporter that does JSON marshaling before export. Having to clean a set of attributes for each log seems computationally expensive so we should verify the cost of doing so before moving forward with a very simple fix (checking for and removing all NaN/Inf) values.Originally posted by @bryan-aguilar in #30316 (comment)
The text was updated successfully, but these errors were encountered: