mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-23 18:43:21 +00:00
require logger
This commit is contained in:
parent
a86c4d8abd
commit
db4ae84bda
1 changed files with 3 additions and 1 deletions
|
@ -1,4 +1,3 @@
|
|||
|
||||
prom = require('prom-client')
|
||||
Register = require('prom-client').register
|
||||
collectDefaultMetrics = prom.collectDefaultMetrics
|
||||
|
@ -19,6 +18,8 @@ module.exports = Metrics =
|
|||
initialize: (_name) ->
|
||||
appname = _name
|
||||
collectDefaultMetrics({ timeout: 5000, prefix: Metrics.buildPromKey()})
|
||||
|
||||
logger = require("logger-sharelatex")
|
||||
|
||||
logger.log("ENABLE_TRACE_AGENT set to #{process.env['ENABLE_TRACE_AGENT']}")
|
||||
if process.env['ENABLE_TRACE_AGENT'] == "true"
|
||||
|
@ -51,6 +52,7 @@ module.exports = Metrics =
|
|||
version: process.env['BUILD_VERSION']
|
||||
}
|
||||
})
|
||||
|
||||
Metrics.inc("process_startup")
|
||||
|
||||
registerDestructor: (func) ->
|
||||
|
|
Loading…
Reference in a new issue