getsentry / sentry-rust

Official Sentry SDK for Rust
https://sentry.io/
Apache License 2.0
620 stars 153 forks source link

fix(metrics): Parse serialized gauge values #640

Closed loewenheim closed 9 months ago

loewenheim commented 9 months ago

Gauges are serialized as last:min:max:sum:count. When parsing a gauge as a Metric, we only want the last value, so we need to take care to discard everything after the first :.

See #639.

codecov[bot] commented 9 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (ea6375d) 73.23% compared to head (bded474) 73.33%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #640 +/- ## ========================================== + Coverage 73.23% 73.33% +0.09% ========================================== Files 62 62 Lines 7550 7563 +13 ========================================== + Hits 5529 5546 +17 + Misses 2021 2017 -4 ```