metrics: Add canceled requests (#11881)

Add metric for canceled requests
This commit is contained in:
Klaus Post
2021-03-24 18:25:27 +01:00
committed by GitHub
parent 410e84d273
commit 749e9c5771
5 changed files with 44 additions and 1 deletions

View File

@@ -49,7 +49,7 @@ type ResponseWriter struct {
}
// NewResponseWriter - returns a wrapped response writer to trap
// http status codes for auditiing purposes.
// http status codes for auditing purposes.
func NewResponseWriter(w http.ResponseWriter) *ResponseWriter {
return &ResponseWriter{
ResponseWriter: w,