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

[WIP] fix serialization/deserialization for u64 and "NaN" float fields in Metrics #2491

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

lalitb
Copy link
Member

@lalitb lalitb commented Jan 1, 2025

Fixes #2487
Design discussion issue (if applicable) #

Changes

Please provide a brief description of the changes here.

Merge requirement checklist

  • CONTRIBUTING guidelines followed
  • Unit tests added/updated (if applicable)
  • Appropriate CHANGELOG.md files updated for non-trivial, user-facing changes
  • Changes in public API reviewed (if applicable)

@lalitb lalitb requested a review from a team as a code owner January 1, 2025 18:10
@lalitb lalitb marked this pull request as draft January 1, 2025 18:10
Copy link

codecov bot commented Jan 1, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.9%. Comparing base (1904d4b) to head (c811133).

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #2491   +/-   ##
=====================================
  Coverage   77.9%   77.9%           
=====================================
  Files        123     123           
  Lines      22944   22944           
=====================================
  Hits       17879   17879           
  Misses      5065    5065           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@lalitb lalitb marked this pull request as ready for review January 7, 2025 09:57
@lalitb lalitb changed the title [WIP] fix serialization/deserialization for u64 type fields in Metrics [WIP] fix serialization/deserialization for u64 and float type fields in Metrics Jan 7, 2025
@lalitb lalitb changed the title [WIP] fix serialization/deserialization for u64 and float type fields in Metrics [WIP] fix serialization/deserialization for u64 and "NaN" float fields in Metrics Jan 7, 2025
@lalitb
Copy link
Member Author

lalitb commented Jan 7, 2025

@nikhilsinhaparseable would it be possible for you to validate and confirm this PR against the issues mentioned in #2487 - It would be easy to get it merged in that case. Else, I will try adding unit-tests sometime next week.

@nikhilsinhaparseable
Copy link

sure @lalitb let me validate this, i will get back to you by tomorrow.

@nikhilsinhaparseable
Copy link

@lalitb histogram is fixed, I can see all the fields are getting serialized.
summary metric is still an issue, no summary record gets serialized - even after removing the quantileValues
I always get data: None for the summary metric records.

@lalitb
Copy link
Member Author

lalitb commented Jan 8, 2025

summary metric is still an issue, no summary record gets serialized - even after removing the quantileValues
I always get data: None for the summary metric records.

@nikhilsinhaparseable Thanks for testing. Just to understand your use-case better - you are using opentelemetry-proto only to deserialize the data generated by otel collector? Or are you using opentelemetry-otlp as exporter to send to collector?

@nikhilsinhaparseable
Copy link

@lalitb I am using opentelemetry-proto to deserialize the data exporting from otel collector to Parseable

@nikhilsinhaparseable
Copy link

@lalitb do we have a fix for summary metric types?
currently, i have forked your PR as dependency in Parseable, but would like to know if we have any progress on the pending issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration tests Run integration tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Serialization Fails for u64 Fields Due to Incoming String Values in OpenTelemetry Metrics
2 participants