Skip to content

Commit 0127ded

Browse files
committed
misc: removing reverse proxy panic metrics
1 parent 2ed1349 commit 0127ded

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)