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

Detect duplicate instruments for case-insensitive names #4338

Merged
merged 7 commits into from Jul 19, 2023

Conversation

MrAlias
Copy link
Contributor

@MrAlias MrAlias commented Jul 18, 2023

Resolve #3835

Detect duplicate instrument registrations for instruments that have the same case-insensitive names. Continue to return the instruments with different names, but log a warning. This is the solution proposed in open-telemetry/opentelemetry-specification#3606.

This does not address the log message not containing a view recipe to resolve the conflict. That is left to #4203.

Resolve open-telemetry#3835

Detect duplicate instrument registrations for instruments that have the
same case-insensitive names. Continue to return the instruments with
different names, but log a warning. This is the solution proposed in
open-telemetry/opentelemetry-specification#3606.
@MrAlias MrAlias added pkg:SDK Related to an SDK package area:metrics Part of OpenTelemetry Metrics labels Jul 18, 2023
@codecov
Copy link

codecov bot commented Jul 18, 2023

Codecov Report

Merging #4338 (91369f3) into main (84b2e54) will increase coverage by 0.0%.
The diff coverage is 100.0%.

Additional details and impacted files

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #4338   +/-   ##
=====================================
  Coverage   83.4%   83.4%           
=====================================
  Files        185     185           
  Lines      14329   14332    +3     
=====================================
+ Hits       11955   11960    +5     
+ Misses      2147    2145    -2     
  Partials     227     227           
Impacted Files Coverage Δ
sdk/metric/pipeline.go 91.2% <100.0%> (+<0.1%) ⬆️

... and 1 file with indirect coverage changes

@MrAlias MrAlias merged commit e08359f into open-telemetry:main Jul 19, 2023
22 checks passed
@MrAlias MrAlias deleted the inst-name-conflicts branch July 19, 2023 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:metrics Part of OpenTelemetry Metrics pkg:SDK Related to an SDK package
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

metric identity and aggregation for duplicate instrument registration
3 participants