-
Notifications
You must be signed in to change notification settings - Fork 502
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
Add with_unit method for metrics API #431
Add with_unit method for metrics API #431
Conversation
Add `with_unit` method to `CounterBuilder`, `SumObserverBuilder`, `UpDownSumObserverBuilder`, `ValueObserverBuilder` structs. Add `set_unit` method to `Descriptor` struct.
Codecov Report
@@ Coverage Diff @@
## master #431 +/- ##
==========================================
+ Coverage 48.78% 48.80% +0.01%
==========================================
Files 66 66
Lines 5450 5450
==========================================
+ Hits 2659 2660 +1
+ Misses 2791 2790 -1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍 Thanks!
Make the `config` property of the `Descriptor` `pub(crate)` and use it directly in metric builders.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good thanks @ozerovandrei
Add
with_unit
method toCounterBuilder
,SumObserverBuilder
,UpDownSumObserverBuilder
,ValueObserverBuilder
structs.Add
set_unit
method toDescriptor
struct.For #276