Prometheus metrics

This commit is contained in:
DarthSim
2018-10-29 18:04:47 +06:00
parent 8030e0aa27
commit dd85087e6a
129 changed files with 32503 additions and 5 deletions

View File

@@ -28,6 +28,10 @@ func checkTimeout(ctx context.Context) {
sendTimeoutToNewRelic(ctx, d)
}
if prometheusEnabled {
incrementPrometheusErrorsTotal("timeout")
}
panic(newError(503, fmt.Sprintf("Timeout after %v", d), "Timeout"))
default:
// Go ahead