mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
add injectMetricsRoute into statsd so it doens't blow up
This commit is contained in:
parent
bf18c6e513
commit
15d14d8e2b
2 changed files with 6 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue