add injectMetricsRoute into statsd so it doens't blow up

This commit is contained in:
Henry Oswald 2019-02-07 09:47:29 +00:00
parent bf18c6e513
commit 15d14d8e2b
2 changed files with 6 additions and 1 deletions

View file

@ -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",

View file

@ -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()