Răsfoiți Sursa

add injectMetricsRoute into statsd so it doens't blow up

Henry Oswald 7 ani în urmă
părinte
comite
15d14d8e2b

+ 1 - 1
libraries/metrics/package.json

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

+ 5 - 0
libraries/metrics/statsd/metrics.coffee

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