Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix metric export data for unused gauges #1363

Merged
merged 2 commits into from
Nov 9, 2023

Conversation

jtescher
Copy link
Member

@jtescher jtescher commented Nov 9, 2023

Fixes #1360

Changes

Clears metric data for gauges that have not received any values when aggregating.

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)

@jtescher jtescher requested a review from a team as a code owner November 9, 2023 20:07
Copy link

codecov bot commented Nov 9, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Files Coverage Δ
...entelemetry-sdk/src/metrics/internal/last_value.rs 0.0% <0.0%> (ø)

📢 Thoughts on this report? Let us know!

@TommyCpp
Copy link
Contributor

TommyCpp commented Nov 9, 2023

Shall do a patch release or do we want to wait a few days in case there are other bugs need to be fixed?

@jtescher
Copy link
Member Author

jtescher commented Nov 9, 2023

Could be worth backporting some of the recent bug fixes as there have been a few

@jtescher jtescher merged commit 5527a11 into open-telemetry:main Nov 9, 2023
14 of 15 checks passed
@jtescher jtescher deleted the fix-gauge-bug branch November 9, 2023 23:24
@bouk
Copy link
Contributor

bouk commented Nov 10, 2023

Thanks for the quick fix! Maybe a regression test would be good?

@cijothomas
Copy link
Member

Thanks for the quick fix! Maybe a regression test would be good?

Absolutely!

jtescher added a commit to jtescher/opentelemetry-rust-1 that referenced this pull request Nov 13, 2023
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.

[Bug]: creating multiple gauges causes data to be copied from one to the other and sent to collector
5 participants