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

[exporter/datadogexporter] Fix tags on summary and bucket metrics #5416

Merged
merged 1 commit into from
Sep 23, 2021

Conversation

mx-psi
Copy link
Member

@mx-psi mx-psi commented Sep 23, 2021

Description:

Fixes an issue where tag slices could get reused across metrics resulting in incorrect or missing tags.

This has been present in some shape or form since the very first PR that implemented Histograms (#1178) but it can only happen in practice when the slice appends don't trigger a reallocation.

Link to tracking Issue: Relates to #5378

Testing: Fixed unit test order since we can't use ElementsMatch

Copy link
Contributor

@KSerrania KSerrania left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mx-psi mx-psi marked this pull request as ready for review September 23, 2021 11:55
@mx-psi mx-psi requested review from a team and kbrockhoff September 23, 2021 11:55
@mx-psi mx-psi added the ready to merge Code review completed; ready to merge by maintainers label Sep 23, 2021
@bogdandrutu bogdandrutu merged commit dc00e5e into open-telemetry:main Sep 23, 2021
@mx-psi mx-psi deleted the mx-psi/tags-legacy-buckets branch September 23, 2021 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Code review completed; ready to merge by maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants