mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Move metrics init to start of app.coffee
This commit is contained in:
parent
3b6eba33ba
commit
594b403bd3
1 changed files with 2 additions and 2 deletions
|
@ -1,3 +1,5 @@
|
|||
Metrics = require "metrics-sharelatex"
|
||||
Metrics.initialize("filestore")
|
||||
express = require('express')
|
||||
bodyParser = require "body-parser"
|
||||
logger = require('logger-sharelatex')
|
||||
|
@ -15,8 +17,6 @@ app = express()
|
|||
if settings.sentry?.dsn?
|
||||
logger.initializeErrorReporting(settings.sentry.dsn)
|
||||
|
||||
Metrics = require "metrics-sharelatex"
|
||||
Metrics.initialize("filestore")
|
||||
Metrics.open_sockets.monitor(logger)
|
||||
Metrics.event_loop?.monitor(logger)
|
||||
Metrics.memory.monitor(logger)
|
||||
|
|
Loading…
Reference in a new issue