mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-08 16:50:44 +02:00
add injectMetricsRoute into statsd so it doens't blow up
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "metrics-sharelatex",
|
||||
"version": "2.1.0",
|
||||
"version": "2.1.1",
|
||||
"description": "A drop-in metrics and monitoring module for node.js apps",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
@@ -56,6 +56,11 @@ module.exports = Metrics =
|
||||
|
||||
timeAsyncMethod: require('./timeAsyncMethod')
|
||||
|
||||
injectMetricsRoute: (app) ->
|
||||
app.get('/metrics', (req, res) ->
|
||||
res.send("not implemented in statsd")
|
||||
)
|
||||
|
||||
close: () ->
|
||||
for func in destructors
|
||||
func()
|
||||
|
||||
Reference in New Issue
Block a user