Skip to content

remove_series API to stop stale instruments from being exported - #3895

Draft
qj-yu wants to merge 7 commits into
open-telemetry:mainfrom
qj-yu:issue-3874
Draft

qj-yu wants to merge 7 commits into
open-telemetry:mainfrom
qj-yu:issue-3874

Conversation

@qj-yu

@qj-yu qj-yu commented Dec 2, 2026

Copy link
Copy Markdown

Fixes #3874
Design discussion issue (if applicable) #3874

Changes

  • Added a remove_series(instrument_name, attribute_set) API that stops the matched series from being exported from the collection.

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)

@linux-foundation-easycla

linux-foundation-easycla Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

CLA Signed
The committers listed above are authorized under a signed CLA.

@opentelemetry-pr-dashboard

Copy link
Copy Markdown

Pull request dashboard status

Waiting on the author · refreshed 2026-12-02 23:21 UTC

Move out of draft to request review.

Status above doesn't look right?
  • Just replied or pushed? Anything around or after the refresh time above may not be picked up yet — give it a few minutes.
  • Anything look wrong? Report it with what you expected; it helps us improve the dashboard.

@codecov

codecov Bot commented Dec 2, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 83.70370% with 22 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.7%. Comparing base (83e9926) to head (3b5be23).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
opentelemetry-sdk/src/metrics/internal/mod.rs 82.1% 5 Missing ⚠️
...-sdk/src/metrics/internal/exponential_histogram.rs 0.0% 3 Missing ⚠️
...pentelemetry-sdk/src/metrics/internal/histogram.rs 0.0% 3 Missing ⚠️
...entelemetry-sdk/src/metrics/internal/last_value.rs 0.0% 3 Missing ⚠️
...emetry-sdk/src/metrics/internal/precomputed_sum.rs 0.0% 3 Missing ⚠️
opentelemetry-sdk/src/metrics/pipeline.rs 88.8% 2 Missing ⚠️
...pentelemetry-sdk/src/metrics/internal/aggregate.rs 0.0% 1 Missing ⚠️
opentelemetry-sdk/src/metrics/mod.rs 98.4% 1 Missing ⚠️
opentelemetry/src/metrics/mod.rs 0.0% 1 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff           @@
##            main   #3895    +/-   ##
======================================
  Coverage   86.7%   86.7%            
======================================
  Files        130     131     +1     
  Lines      34673   34847   +174     
======================================
+ Hits       30062   30235   +173     
- Misses      4611    4612     +1     

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

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

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: forget stale instrument values

1 participant