Repository navigation
feat(otlp): Improved support for OTLP JSON metrics serialization (NaN,Infinity,-Infinity) - #3496
LorenzoTettamanti wants to merge 55 commits into
Conversation
…tion<f64> type. Added tests in json_serde.rs for HistogramDataPoint.sum,HistogramDataPoint.min,HistogramDataPoint.max
…etrics.v1.SummaryDataPoint.value,metrics.v1.Exemplar.value,metrics.v1.ExponentialHistogramDataPoint.zeroThreshold
…DataPoint.value,metrics.v1.Exemplar.value,metrics.v1.ExponentialHistogramDataPoint.zeroThreshold
…stogram NaN metrics test,Added gauge NaN metrics test
|
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3496 +/- ##
=======================================
- Coverage 86.7% 86.7% -0.1%
=======================================
Files 131 131
Lines 34712 34712
=======================================
- Hits 30116 30112 -4
- Misses 4596 4600 +4 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…sts for -Infinity,+Infinity and NaN for Vec<f64> type
|
Hi @LorenzoTettamanti — while reading the
The effect is that the crate can no longer deserialize its own serialized output whenever a histogram leaves Minimal repro (serialize a It serializes to Would it make sense to have the visitor accept null — e.g. add |
|
Hi @lazureykis , that's a great catch. I think that's a great idea to implement the |
Pull request dashboard statusWaiting on reviewers · refreshed 2026-11-24 23:46 UTC Review the latest changes. Status above doesn't look right?
|
This comment has been minimized.
This comment has been minimized.
…r data_point.value for both NumberDataPoint and Gauge
…r_f64_special and deserialize_option_f64_special. Now the F64 deserialization of special cases pass through deserialize_f64_special only
|
Hi @darkraider01, thanks for the review! I applied your fixes. Let me know if something is missing! |
|
Looks good to me, Thanks for the work!!! |
…ed f64_bare_number_in_summary_quantile test to match open-telemetry#3442
|
/dashboard route:reviewers |
|
@LorenzoTettamanti, this pull request was routed to reviewers. The handoff remains active across pushes until newer actionable human feedback arrives. Top-level feedback through this request will not return; unresolved review threads remain open. |
Updates #3442
Changes
HistogramDataPointsum,min,maxOption<f64>HistogramDataPointexplicit_boundsVec<f64>ExponentialHistogramDataPointsum,min,maxOption<f64>ExponentialHistogramDataPointzero_thresholdf64SummaryDataPointsumf64NumberDataPoint::ValueAsDoublef64Exemplar::ValueAsDoublef64AnyValueDoubleValuef64Merge requirement checklist
CHANGELOG.mdfiles updated for non-trivial, user-facing changes