have default opts in inc

This commit is contained in:
Henry Oswald 2018-11-27 16:12:12 +00:00
parent 8adfc49af7
commit 917afa3edc

View file

@ -52,7 +52,7 @@ module.exports = Metrics =
set : (key, value, sampleRate = 1)->
inc : (key, sampleRate = 1, opts)->
inc : (key, sampleRate = 1, opts = {})->
key = Metrics.buildPromKey(key)
if !promMetrics[key]?
promMetrics[key] = new prom.Counter({