opentelemetry-rust icon indicating copy to clipboard operation
opentelemetry-rust copied to clipboard

fix: ObservableCounter and ObservableUpDownCounter remove stale attribute combinations that are no longer observed

Open taisho6339 opened this issue 1 month ago • 3 comments

Fixes #3213

Changes

ObservableCounter and ObservableUpDownCounter now correctly report only data points from the current measurement cycle, removing stale attribute combinations that are no longer observed.

Merge requirement checklist

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

taisho6339 avatar Nov 16 '25 00:11 taisho6339

CLA Signed

The committers listed above are authorized under a signed CLA.

  • :white_check_mark: login: taisho6339 / name: Hiroki Sakamoto (e98c4fd5bf4b7060d3acdce13f455d714ef0d3fe)

Codecov Report

:white_check_mark: All modified and coverable lines are covered by tests. :white_check_mark: Project coverage is 80.7%. Comparing base (65969fd) to head (e98c4fd).

Additional details and impacted files
@@           Coverage Diff           @@
##            main   #3248     +/-   ##
=======================================
- Coverage   80.7%   80.7%   -0.1%     
=======================================
  Files        129     129             
  Lines      23210   23203      -7     
=======================================
- Hits       18748   18741      -7     
  Misses      4462    4462             

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

codecov[bot] avatar Nov 16 '25 00:11 codecov[bot]

Sorry for the delay. I'll review soon.

cijothomas avatar Dec 03 '25 18:12 cijothomas