-
Notifications
You must be signed in to change notification settings - Fork 835
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
fix(metrics): updates unit option behavior to be spec-compliant #2983
Conversation
There is a downstream behavior here that will need resolved before merging. The
|
experimental/packages/opentelemetry-sdk-metrics-base/test/InstrumentDescriptor.test.ts
Outdated
Show resolved
Hide resolved
experimental/packages/opentelemetry-sdk-metrics-base/src/InstrumentDescriptor.ts
Outdated
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## main #2983 +/- ##
=======================================
Coverage 92.71% 92.71%
=======================================
Files 183 183
Lines 6134 6134
Branches 1299 1299
=======================================
Hits 5687 5687
Misses 447 447
|
Hmm I'm not sure I understand correctly. As far as I can tell the reason these tests are failing are because they expect a unit string of You can, in that case, just change the expected unit to be |
Can you mark this as a draft until it is complete and has passing tests? |
I don't think there's an option to switch a PR back to draft without closing and reopening a new one. I've pushed an update that changes the expectation for unit values. (Tests should pass, but waiting for CI to run). |
You might still have to replace the expected
Then this PR should be ready to go 🙂 |
Please add a changelog entry in |
Fixes #2910
Short description of the changes
Changes the behavior of the unit option for an instrument descriptor to be compliant with the specification. See additional discussion on issue.
How Has This Been Tested?
Unit tests were added to confirm behavior.
Checklist:
Documentation has been updated