This commit is contained in:
Vladislav Kunetskiy
2026-11-05 20:21:39 +03:00
parent edc2a405ee
commit 71fbb4b321
129 changed files with 10027 additions and 170 deletions
+3 -2
View File
@@ -20,7 +20,6 @@ func NewRouter(
oas.WithErrorHandler(newErrorHandler(log)),
oas.WithNotFound(newNotFoundHandler(log)),
oas.WithMethodNotAllowed(newMethodNotAllowedHandler(log)),
oas.WithMiddleware(loggingMiddleware(log)),
)
if err != nil {
return nil, err
@@ -38,7 +37,9 @@ func NewRouter(
mux.Handle("/", server)
limited := bodyLimitMiddleware(maxBodyBytes, maxUploadBytes, log, mux)
return requestIDMiddleware(
instanceIDMiddleware(InstanceID(), bodyLimitMiddleware(maxBodyBytes, maxUploadBytes, log, mux)),
instanceIDMiddleware(InstanceID(), telemetryMiddleware(log, server, mux, limited)),
), nil
}