diff --git a/rest/engine.go b/rest/engine.go index e0a5a085..40ee5c1b 100644 --- a/rest/engine.go +++ b/rest/engine.go @@ -109,13 +109,13 @@ func (s *engine) bindRoute(fr featuredRoutes, router httpx.Router, metrics *stat chain := alice.New( handler.TracingHandler, s.getLogHandler(), + handler.PrometheusHandler(route.Path), handler.MaxConns(s.conf.MaxConns), handler.BreakerHandler(route.Method, route.Path, metrics), handler.SheddingHandler(s.getShedder(fr.priority), metrics), handler.TimeoutHandler(time.Duration(s.conf.Timeout)*time.Millisecond), handler.RecoverHandler, handler.MetricHandler(metrics), - handler.PrometheusHandler(route.Path), handler.MaxBytesHandler(s.conf.MaxBytes), handler.GunzipHandler, )