Repository navigation
feat(otlp): Improved support for OTLP JSON metrics serialization (NaN,Infinity,-Infinity) - #3496
LorenzoTettamanti wants to merge 39 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 84.2% 84.2%
=====================================
Files 123 123
Lines 30484 30484
=====================================
Hits 25686 25686
Misses 4798 4798 ☔ 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-10-17 22:31 UTC Review the latest changes. Status above doesn't look right?
|
This comment has been minimized.
This comment has been minimized.
|
/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. |
|
/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. |
e7ebf28 to
e0a62ff
Compare
|
/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. |
…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! |
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