mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-28 22:53:40 -05:00
Namespace http request keys
This commit is contained in:
parent
befb48a20f
commit
873297b02e
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ module.exports.monitor = (logger) ->
|
||||||
end.apply(this, arguments)
|
end.apply(this, arguments)
|
||||||
responseTime = new Date() - startTime
|
responseTime = new Date() - startTime
|
||||||
routePath = req.route.path.toString().replace(/\//g, '_').replace(/\:/g, '').slice(1)
|
routePath = req.route.path.toString().replace(/\//g, '_').replace(/\:/g, '').slice(1)
|
||||||
key = "#{routePath}.#{req.method}.#{res.statusCode}"
|
key = "http-requests.#{routePath}.#{req.method}.#{res.statusCode}"
|
||||||
|
|
||||||
Metrics.timing(key, responseTime)
|
Metrics.timing(key, responseTime)
|
||||||
logger.log
|
logger.log
|
||||||
|
|
Loading…
Reference in a new issue