v14.2.0
Changed
- Refactor
getMetricAsPrometheusString
method in theRegistry
class to useArray.prototype.join
instead of loop of string concatenations. - Also use
Array.prototype.map
, and object spread instead of an explicitfor
loop - changed: updated the sample output in
example/default-metrics.js
summary
metrics now has apruneAgedBuckets
config parameter
to remove entries without any new values in the lastmaxAgeSeconds
.
Default isfalse
(old behavior)
Added
- Add
get
method to type definitions of metric classes
New Contributors
- @nflaig made their first contribution in #531
- @shappir made their first contribution in #542
- @rilpires made their first contribution in #540
Full Changelog: v14.1.1...v14.2.0