mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-16 15:26:40 +00:00
fix nil pointer error in roundtripper
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user