mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Use correct key in Metrics.timing
This commit is contained in:
@@ -17,12 +17,12 @@ module.exports =
|
|||||||
statsd.increment buildKey(key), sampleRate
|
statsd.increment buildKey(key), sampleRate
|
||||||
|
|
||||||
timing: (key, timeSpan, sampleRate)->
|
timing: (key, timeSpan, sampleRate)->
|
||||||
statsd.timing(key, timeSpan, sampleRate)
|
statsd.timing(buildKey(key), timeSpan, sampleRate)
|
||||||
|
|
||||||
Timer : class
|
Timer : class
|
||||||
constructor :(key, sampleRate = 1)->
|
constructor :(key, sampleRate = 1)->
|
||||||
this.start = new Date()
|
this.start = new Date()
|
||||||
this.key = buildKey(key)
|
this.key = key
|
||||||
this.sampleRate = sampleRate
|
this.sampleRate = sampleRate
|
||||||
done:->
|
done:->
|
||||||
timeSpan = new Date - this.start
|
timeSpan = new Date - this.start
|
||||||
|
|||||||
Reference in New Issue
Block a user