From 594b403bd36f16f1ec9098562b735188f3bdf13f Mon Sep 17 00:00:00 2001 From: Christopher Hoskin Date: Wed, 2 Jan 2019 09:55:31 +0000 Subject: [PATCH] Move metrics init to start of app.coffee --- services/filestore/app.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/filestore/app.coffee b/services/filestore/app.coffee index 549cd19bfe..c1484142b1 100644 --- a/services/filestore/app.coffee +++ b/services/filestore/app.coffee @@ -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)