mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Switch to v2 metrics
This commit is contained in:
parent
1d8e52cdd5
commit
03f7982bae
3 changed files with 1702 additions and 6126 deletions
|
@ -8,10 +8,10 @@
|
||||||
* DS102: Remove unnecessary code created because of implicit returns
|
* DS102: Remove unnecessary code created because of implicit returns
|
||||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||||
*/
|
*/
|
||||||
const logger = require('logger-sharelatex')
|
|
||||||
logger.initialize('chat-sharelatex')
|
|
||||||
const metrics = require('metrics-sharelatex')
|
const metrics = require('metrics-sharelatex')
|
||||||
metrics.initialize('chat')
|
metrics.initialize('chat')
|
||||||
|
const logger = require('logger-sharelatex')
|
||||||
|
logger.initialize('chat-sharelatex')
|
||||||
const Path = require('path')
|
const Path = require('path')
|
||||||
const express = require('express')
|
const express = require('express')
|
||||||
const app = express()
|
const app = express()
|
||||||
|
@ -20,6 +20,7 @@ const Router = require('./router')
|
||||||
|
|
||||||
app.use(express.bodyParser())
|
app.use(express.bodyParser())
|
||||||
app.use(metrics.http.monitor(logger))
|
app.use(metrics.http.monitor(logger))
|
||||||
|
metrics.injectMetricsRoute(app)
|
||||||
|
|
||||||
if (app.get('env') === 'development') {
|
if (app.get('env') === 'development') {
|
||||||
console.log('Development Enviroment')
|
console.log('Development Enviroment')
|
||||||
|
|
7821
services/chat/npm-shrinkwrap.json
generated
7821
services/chat/npm-shrinkwrap.json
generated
File diff suppressed because it is too large
Load diff
|
@ -25,7 +25,7 @@
|
||||||
"coffee-script": "~1.7.1",
|
"coffee-script": "~1.7.1",
|
||||||
"express": "3.3.1",
|
"express": "3.3.1",
|
||||||
"logger-sharelatex": "git+https://github.com/sharelatex/logger-sharelatex.git#master",
|
"logger-sharelatex": "git+https://github.com/sharelatex/logger-sharelatex.git#master",
|
||||||
"metrics-sharelatex": "git+https://github.com/sharelatex/metrics-sharelatex.git#v1.7.1",
|
"metrics-sharelatex": "git+https://github.com/sharelatex/metrics-sharelatex.git#v2.0.12",
|
||||||
"mongojs": "2.4.0",
|
"mongojs": "2.4.0",
|
||||||
"redis": "~0.10.1",
|
"redis": "~0.10.1",
|
||||||
"request": "^2.79.0",
|
"request": "^2.79.0",
|
||||||
|
|
Loading…
Reference in a new issue