Skip to content

Commit fe0165e

Browse files
authored
Merge pull request #346 from devtron-labs/fix-remove-reverse-proxy-metrics
fix: reverse proxy panic metrics
2 parents 59f5c72 + e899e8d commit fe0165e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

common-lib/middlewares/recovery.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ func Recovery(next http.Handler) http.Handler {
3535
if errors.Is(err.(error), http.ErrAbortHandler) {
3636
// suppress logging for http.ErrAbortHandler panic
3737
// separate metric for reverse proxy panic recovery
38-
metrics.IncReverseProxyPanicRecoveryCount("proxy", r.Host, r.Method, r.RequestURI)
38+
//metrics.IncReverseProxyPanicRecoveryCount("proxy", r.Host, r.Method, r.RequestURI)
39+
log.Print("Reverse Proxy Panic Recovery count increased ", "Host: ", r.Host, "Method: ", r.Method, "Path: ", r.RequestURI)
3940
} else {
4041
// log and increment panic recovery count
4142
metrics.IncPanicRecoveryCount("handler", r.Host, r.Method, r.RequestURI)

0 commit comments

Comments
 (0)