Skip to content
Snippets Groups Projects
Commit d6ad67a6 authored by Benoit Sigoure's avatar Benoit Sigoure
Browse files

server: add metrics for CORS handlers.

parent 60f47c42
Branches
Tags
No related merge requests found
...@@ -257,7 +257,7 @@ func newServer(ctx context.Context, c Config, rotationStrategy rotationStrategy) ...@@ -257,7 +257,7 @@ func newServer(ctx context.Context, c Config, rotationStrategy rotationStrategy)
corsOption := handlers.AllowedOrigins(c.AllowedOrigins) corsOption := handlers.AllowedOrigins(c.AllowedOrigins)
handler = handlers.CORS(corsOption)(handler) handler = handlers.CORS(corsOption)(handler)
} }
r.Handle(path.Join(issuerURL.Path, p), handler) r.Handle(path.Join(issuerURL.Path, p), instrumentHandlerCounter(p, handler))
} }
r.NotFoundHandler = http.HandlerFunc(http.NotFound) r.NotFoundHandler = http.HandlerFunc(http.NotFound)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment