mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Use correct key in Metrics.timing
This commit is contained in:
parent
f4895fb04f
commit
befb48a20f
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue