This commit is contained in:
Vladislav Kunetskiy
2026-11-05 02:09:39 +03:00
parent edc2a405ee
commit b53ecba3e6
132 changed files with 10121 additions and 119 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
}