Skip to content

Commit 71178f4

Browse files
WFE: Track in-flight for "/" (#7759)
1 parent d0c9aa3 commit 71178f4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

metrics/measured_http/http.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,8 @@ func (h *MeasuredHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
8181
rwws := &responseWriterWithStatus{w, 0}
8282

8383
subHandler, pattern := h.Handler(r)
84-
if pattern != "/" {
85-
h.inFlightRequestsGauge.WithLabelValues(pattern).Inc()
86-
defer h.inFlightRequestsGauge.WithLabelValues(pattern).Dec()
87-
}
84+
h.inFlightRequestsGauge.WithLabelValues(pattern).Inc()
85+
defer h.inFlightRequestsGauge.WithLabelValues(pattern).Dec()
8886

8987
// Use the method string only if it's a recognized HTTP method. This avoids
9088
// ballooning timeseries with invalid methods from public input.

0 commit comments

Comments
 (0)