mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-26 16:51:18 +00:00
add support for statsd count method
This commit is contained in:
parent
8db30020ae
commit
29177f8de8
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue