-
Notifications
You must be signed in to change notification settings - Fork 769
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
[bugFix] Meter tags are now recognized as identifiers #5982
base: main
Are you sure you want to change the base?
[bugFix] Meter tags are now recognized as identifiers #5982
Conversation
…eter identity uniqueness.
2458d0b
to
b5d1011
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5982 +/- ##
==========================================
- Coverage 84.00% 84.00% -0.01%
==========================================
Files 275 275
Lines 12582 12584 +2
==========================================
+ Hits 10570 10571 +1
- Misses 2012 2013 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
This PR was marked stale due to lack of activity and will be closed in 7 days. Commenting or pushing will instruct the bot to automatically remove the label. This bot runs once per day. |
src/OpenTelemetry/Metrics/Tags.cs
Outdated
@@ -27,6 +27,39 @@ public Tags(KeyValuePair<string, object?>[] keyValuePairs) | |||
|
|||
public static bool operator !=(Tags tag1, Tags tag2) => !tag1.Equals(tag2); | |||
|
|||
[MethodImpl(MethodImplOptions.AggressiveInlining)] | |||
public static int ComputeHashCode(KeyValuePair<string, object?>[] keyValuePairs) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't think this change is required.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made sure the test is not dependent and reverted the change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Please add changelog entry too, as this is breaking existing behavior to fix bug.
Fixes #5859
Design discussion issue #
Changes
Metric tags are now considered identifiers, contributing to metric scope uniqueness.
Merge requirement checklist
CHANGELOG.md
files updated for non-trivial changes