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

[bugFix] Meter tags are now recognized as identifiers #5982

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

dulikvor
Copy link

@dulikvor dulikvor commented Nov 16, 2024

Fixes #5859
Design discussion issue #

Changes

Metric tags are now considered identifiers, contributing to metric scope uniqueness.

Merge requirement checklist

  • CONTRIBUTING guidelines followed (license requirements, 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)

@dulikvor dulikvor requested a review from a team as a code owner November 16, 2024 13:13
Copy link

linux-foundation-easycla bot commented Nov 16, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

@github-actions github-actions bot added the pkg:OpenTelemetry Issues related to OpenTelemetry NuGet package label Nov 16, 2024
@dulikvor dulikvor force-pushed the users/dulikvor/markinstrumentation branch from 2458d0b to b5d1011 Compare November 16, 2024 16:51
Copy link

codecov bot commented Nov 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.00%. Comparing base (f9a0b4c) to head (df90d3b).

Additional details and impacted files

Impacted file tree graph

@@            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     
Flag Coverage Δ
unittests-Project-Experimental 83.99% <100.00%> (+<0.01%) ⬆️
unittests-Project-Stable 83.92% <100.00%> (-0.06%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/OpenTelemetry/Metrics/Metric.cs 97.24% <100.00%> (ø)
src/OpenTelemetry/Metrics/MetricStreamIdentity.cs 89.16% <100.00%> (+0.18%) ⬆️
src/OpenTelemetry/Metrics/Tags.cs 93.33% <100.00%> (+2.22%) ⬆️

... and 2 files with indirect coverage changes

Copy link
Contributor

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.

@github-actions github-actions bot added the Stale Issues and pull requests which have been flagged for closing due to inactivity label Nov 26, 2024
@@ -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)
Copy link
Member

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.

Copy link
Author

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.

Copy link
Member

@cijothomas cijothomas left a 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.

@github-actions github-actions bot removed the Stale Issues and pull requests which have been flagged for closing due to inactivity label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg:OpenTelemetry Issues related to OpenTelemetry NuGet package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug] Mark instrumentation scope attributes as identifying
2 participants