Selaa lähdekoodia

Add more detail to metric

Simon Detheridge 6 vuotta sitten
vanhempi
sitoutus
4102aa0580
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      services/real-time/app.coffee

+ 1 - 1
services/real-time/app.coffee

@@ -142,7 +142,7 @@ if Settings.shutdownDrainTimeWindow?
 		process.removeAllListeners('uncaughtException')
 		process.on 'uncaughtException', (error) ->
 			if ['EPIPE', 'ECONNRESET'].includes(error.code)
-				Metrics.inc('disconnected_write')
+				Metrics.inc('disconnected_write', 1, {status: error.code})
 				return logger.warn err: error, 'attempted to write to disconnected client'
 			logger.error err: error, 'uncaught exception'
 			if Settings.errors?.shutdownOnUncaughtError