Use METRICS_APP_NAME env var to initialise metrics, if present

This commit is contained in:
Simon Detheridge 2020-07-22 16:57:41 +01:00
parent 988cb1174b
commit 89fc640ec4

View file

@ -1,8 +1,8 @@
const logger = require('logger-sharelatex')
const Metrics = require('metrics-sharelatex')
logger.initialize(process.env.METRICS_APP_NAME || 'filestore')
logger.initialize('filestore')
Metrics.initialize('filestore')
const Metrics = require('metrics-sharelatex')
Metrics.initialize(process.env.METRICS_APP_NAME || 'filestore')
const settings = require('settings-sharelatex')
const express = require('express')