From 29177f8de861538804a43f72bb6366c18af9bcae Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Tue, 15 Mar 2016 13:52:32 +0000 Subject: [PATCH] add support for statsd count method --- libraries/metrics/metrics.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/metrics/metrics.coffee b/libraries/metrics/metrics.coffee index e382c8a8cd..74ce2c05ff 100644 --- a/libraries/metrics/metrics.coffee +++ b/libraries/metrics/metrics.coffee @@ -21,6 +21,9 @@ module.exports = inc : (key, sampleRate = 1)-> statsd.increment buildKey(key), sampleRate + count : (key, count, sampleRate = 1)-> + statsd.count buildKey(key), count, sampleRate + timing: (key, timeSpan, sampleRate)-> statsd.timing(buildKey(key), timeSpan, sampleRate)