-
Notifications
You must be signed in to change notification settings - Fork 96
Add support for Cumulative API #480
Add support for Cumulative API #480
Conversation
Codecov Report
@@ Coverage Diff @@
## master #480 +/- ##
=========================================
+ Coverage 94.74% 94.84% +0.1%
=========================================
Files 148 150 +2
Lines 9946 10106 +160
Branches 747 752 +5
=========================================
+ Hits 9423 9585 +162
+ Misses 523 521 -2
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 pending a few comments
* @param {number} val The new value. | ||
*/ | ||
inc(val?: number): void { | ||
if (val && !Number.isFinite(val)) { |
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.
Does this catch NaN
(I'm guessing not), and assuming not, could you make it do that?
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
161ac4d
to
6444d01
Compare
Updates #450
Adding Derived Cumulative API and registering with Metric-Registry will be in a follow-up PR.