fix nil pointer error in roundtripper

This commit is contained in:
Alisdair MacLeod
2026-02-12 14:44:07 +00:00
parent f70925178c
commit 6dfc5772ba

View File

@@ -110,8 +110,6 @@ func (m *Metrics) RoundTripper(next http.RoundTripper) http.RoundTripper {
duration := time.Since(start)
labels := prometheus.Labels{
"status": strconv.Itoa(res.StatusCode),
"size": strconv.Itoa(int(res.ContentLength)),
"method": req.Method,
"host": req.Host,
"path": req.URL.Path,