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

Use first-seen instrument name for name conflicts #4428

Merged
merged 4 commits into from
Aug 10, 2023

Conversation

MrAlias
Copy link
Contributor

@MrAlias MrAlias commented Aug 9, 2023

Resolve #3835
Resolve #3653

It has been clarified at the specification level1 that instrument name conflicts need to be resolved by using the first-seen instrument name as the produced data stream name. This changes our implementation to comply with this and adds testing to prevent regression.

Footnotes

  1. https://github.com/open-telemetry/opentelemetry-specification/issues/3539

@MrAlias MrAlias added pkg:SDK Related to an SDK package area:metrics Part of OpenTelemetry Metrics labels Aug 9, 2023
@MrAlias MrAlias added this to the v1.17.0/v0.40.0 milestone Aug 9, 2023
@codecov
Copy link

codecov bot commented Aug 9, 2023

Codecov Report

Merging #4428 (118569c) into main (b44a2bb) will decrease coverage by 0.1%.
The diff coverage is 100.0%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##            main   #4428     +/-   ##
=======================================
- Coverage   81.2%   81.2%   -0.1%     
=======================================
  Files        247     247             
  Lines      19996   20006     +10     
=======================================
+ Hits       16248   16256      +8     
- Misses      3405    3407      +2     
  Partials     343     343             
Files Changed Coverage Δ
sdk/metric/instrument.go 92.0% <100.0%> (+0.2%) ⬆️
sdk/metric/pipeline.go 88.5% <100.0%> (+0.2%) ⬆️

... and 1 file with indirect coverage changes

@MrAlias MrAlias merged commit 10d9038 into open-telemetry:main Aug 10, 2023
21 checks passed
@MrAlias MrAlias deleted the first-seen-stream-name branch August 10, 2023 16:58
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
3 participants