From 917afa3edc1ce66bce93a95ffa313f380f41eadf Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Tue, 27 Nov 2018 16:12:12 +0000 Subject: [PATCH] have default opts in inc --- libraries/metrics/metrics.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/metrics/metrics.coffee b/libraries/metrics/metrics.coffee index 1c19fa05e9..e5401d1c88 100644 --- a/libraries/metrics/metrics.coffee +++ b/libraries/metrics/metrics.coffee @@ -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({