mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
replace - with _
This commit is contained in:
parent
cf920a86f7
commit
c36e3d74b5
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ module.exports = Metrics =
|
|||
timing: (key, timeSpan, sampleRate)->
|
||||
statsd.timing(buildKey(key), timeSpan, sampleRate)
|
||||
if !promMetrics[key]
|
||||
k = "#{name}_timer_#{key}".replace(/\./g,"_")
|
||||
k = "#{name}_timer_#{key}".replace(/\./g,"_").replace(/-/g,"_")
|
||||
console.log("sending timing", k)
|
||||
promMetrics[key] = new prom.Summary({
|
||||
name: k,
|
||||
|
|
Loading…
Reference in a new issue