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

Allow views to select on instrument unit #5255

Merged
merged 1 commit into from
Mar 1, 2023

Conversation

jack-berg
Copy link
Member

Implements spec PR #3184.

@jack-berg jack-berg requested a review from a team February 27, 2023 22:47
@codecov
Copy link

codecov bot commented Feb 27, 2023

Codecov Report

Base: 91.10% // Head: 91.10% // Increases project coverage by +0.00% 🎉

Coverage data is based on head (2de2df1) compared to base (dfaa681).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #5255   +/-   ##
=========================================
  Coverage     91.10%   91.10%           
- Complexity     4876     4881    +5     
=========================================
  Files           549      549           
  Lines         14420    14428    +8     
  Branches       1371     1374    +3     
=========================================
+ Hits          13137    13145    +8     
  Misses          890      890           
  Partials        393      393           
Impacted Files Coverage Δ
.../opentelemetry/sdk/metrics/InstrumentSelector.java 94.11% <100.00%> (+0.78%) ⬆️
...lemetry/sdk/metrics/InstrumentSelectorBuilder.java 100.00% <100.00%> (ø)
...emetry/sdk/metrics/internal/view/ViewRegistry.java 97.67% <100.00%> (+0.08%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@jkwatson jkwatson left a comment

Choose a reason for hiding this comment

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

Seems weird to me, but doesn't seem harmful, and if the spec says we should do it 🤷🏽

@jack-berg
Copy link
Member Author

Seems weird to me, but doesn't seem harmful, and if the spec says we should do it 🤷🏽

The argument that convinced me is allowing you to choose appropriate explicit bucket boundaries based on whether units are milliseconds or seconds, grams or milligrams, etc.

@jack-berg jack-berg merged commit a483171 into open-telemetry:main Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants