Skip to content
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/awsemf] Drop metrics with Inf values #29714

Merged
merged 4 commits into from
Dec 21, 2023

Conversation

jayasai470
Copy link
Contributor

Description: Metrics with Inf values for float types would cause the EMF Exporter to error out during JSON Marshaling. This PR introduces a change to drop metric values that contain Inf.

Link to tracking Issue: Fixes #29336

Testing: Added unit tests at several different points with varying levels of specificity. Unit tests are quite verbose in this example but I have followed the format of existing tests while doing very little refactoring.

Documentation: Update README

@jayasai470 jayasai470 requested a review from Aneurysm9 as a code owner December 8, 2023 18:49
@jayasai470 jayasai470 requested a review from a team December 8, 2023 18:49
@github-actions github-actions bot added the exporter/awsemf awsemf exporter label Dec 8, 2023
Copy link
Contributor

@bryan-aguilar bryan-aguilar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the contribution. I have ran the test cases and left a few small nit comments. Other than that this is along the lines of what I expected would have to be done.

.chloggen/awsemf_dropinf.yaml Outdated Show resolved Hide resolved
exporter/awsemfexporter/datapoint.go Outdated Show resolved Hide resolved
exporter/awsemfexporter/datapoint.go Outdated Show resolved Hide resolved
@bryan-aguilar bryan-aguilar added the ready to merge Code review completed; ready to merge by maintainers label Dec 20, 2023
@codeboten codeboten merged commit 43932b2 into open-telemetry:main Dec 21, 2023
90 checks passed
@github-actions github-actions bot added this to the next release milestone Dec 21, 2023
cparkins pushed a commit to AmadeusITGroup/opentelemetry-collector-contrib that referenced this pull request Jan 10, 2024
Description: Metrics with Inf values for float types would cause the EMF
Exporter to error out during JSON Marshaling. This PR introduces a
change to drop metric values that contain Inf.

Link to tracking Issue: Fixes
open-telemetry#29336

Testing: Added unit tests at several different points with varying
levels of specificity. Unit tests are quite verbose in this example but
I have followed the format of existing tests while doing very little
refactoring.

Documentation: Update README

---------

Co-authored-by: bryan-aguilar <46550959+bryan-aguilar@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exporter/awsemf awsemf exporter ready to merge Code review completed; ready to merge by maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[exporter/awsemf] Fails to translate inf metrics
4 participants