Добавить наблюдаемость и проверки отказов для ЛР 6

This commit is contained in:
2026-11-26 18:20:32 +03:00
parent 1d81159dd3
commit 9db37405fb
46 changed files with 7878 additions and 173 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 {