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

AggregatorStore: don't double-count drops in doubles #5193

Merged

Conversation

NickCraver
Copy link
Contributor

As funny as double counting only in doubles is, this seems like an oversight where we inadvertently call Interlocked.Increment(ref this.DroppedMeasurements); twice in the non-emitOverflowAttribute path. I noticed this digging into a related issue, so thought I'd pop up a PR while in here :)

Changes

  • Drops duplicate DroppedMeasurements increment in AggregatorStore.UpdateDouble
  • Drops duplicate DroppedMeasurements increment in AggregatorStore.UpdateDoubleCustomTags

Merge requirement checklist

  • CONTRIBUTING guidelines followed (nullable enabled, static analysis, etc.)
  • Unit tests added/updated
  • Appropriate CHANGELOG.md files updated for non-trivial changes
  • Changes in public API reviewed (if applicable)

As funny as double counting only in doubles is, this seems like an oversight where we inadvertently call `Interlocked.Increment(ref this.DroppedMeasurements);` twice in the non-`emitOverflowAttribute` path. I noticed this digging into a related issue, so thought I'd pop up a PR while in here :)
@NickCraver NickCraver requested a review from a team December 19, 2023 22:36
Copy link

linux-foundation-easycla bot commented Dec 19, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: NickCraver / name: Nick Craver (327c5d8)

@utpilla utpilla merged commit 9d8ef70 into open-telemetry:main Dec 19, 2023
40 checks passed
@utpilla
Copy link
Contributor

utpilla commented Dec 19, 2023

@NickCraver Thanks for sending the PR!

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.

2 participants