mirror of
https://github.com/containous/traefik.git
synced 2025-03-19 18:50:12 +03:00
Remove unnecessary conversion
This commit is contained in:
parent
abdcb9e332
commit
029fa83690
@ -65,7 +65,7 @@ func (m *metricsMiddleware) ServeHTTP(rw http.ResponseWriter, r *http.Request, n
|
||||
|
||||
labels = append(labels, "code", strconv.Itoa(recorder.statusCode))
|
||||
m.reqsCounter.With(labels...).Add(1)
|
||||
m.reqDurationHistogram.With(labels...).Observe(float64(time.Since(start).Seconds()))
|
||||
m.reqDurationHistogram.With(labels...).Observe(time.Since(start).Seconds())
|
||||
}
|
||||
|
||||
func getRequestProtocol(req *http.Request) string {
|
||||
|
Loading…
x
Reference in New Issue
Block a user