Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HTTPServerLatency = func(logger *zerolog.Logger) middlewares.Middleware { return func(next http.HandlerFunc) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { var methodPath = r.Method + " " + r.URL.Path var startedAt = time.Now() next.ServeHTTP(w, r) metrics.HistogramObserverServer(methodPath, nil).Observe(time.Since(startedAt).Seconds()) } } }
HTTPServerLatency .
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.