add support for statsd count method

This commit is contained in:
Brian Gough 2016-03-15 13:52:32 +00:00
parent 8db30020ae
commit 29177f8de8

View file

@ -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)