This commit is contained in:
2026-11-26 18:41:51 +03:00
parent 1d81159dd3
commit 01839ea890
45 changed files with 7796 additions and 170 deletions
+1 -4
View File
@@ -82,10 +82,7 @@ func NewRouterWithCache(
root.HandleFunc("GET /health/ready", handleHealthReady(pool, o.Redis, o.Blobs, o.Draining))
root.Handle("/", concurrencyMiddleware(s.Limiter, apiMux))
var h http.Handler = root
h = loggingMiddleware(h)
h = instanceMiddleware(o.InstanceID, h)
return h
return instanceMiddleware(o.InstanceID, observeRequests(root, apiMux))
}
func instanceMiddleware(id string, next http.Handler) http.Handler {