-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simplify gauge "+"/"-": float64 naturally saturates, negative is OK
Gauge relative change limit checks are a hold-over from when gauge values were uint64. float64 loses much precision at very high values, and it rounds to values it is able to represent: MaxFloat64 + 123456789.0 = MaxFloat64 (you have to subtract about 1e292 to get it to budge!) Negative gauge results seem to be part of the informal spec: > This implies you can't explicitly set a gauge to a negative number > without first setting it to zero. https://github.com/etsy/statsd/blob/master/docs/metric_types.md#gauges And really, who uses relative gauge changes anyway ...
- Loading branch information
Showing
2 changed files
with
5 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters