mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
metrics: add operation name used in metrics/tracing for middlewares (#53949)
Signed-off-by: bergquist <carl.bergquist@gmail.com>
This commit is contained in:
@@ -525,7 +525,7 @@ func (hs *HTTPServer) applyRoutes() {
|
||||
// then add view routes & api routes
|
||||
hs.RouteRegister.Register(hs.web, hs.namedMiddlewares...)
|
||||
// lastly not found route
|
||||
hs.web.NotFound(middleware.ReqSignedIn, hs.NotFoundHandler)
|
||||
hs.web.NotFound(middleware.ProvideRouteOperationName("notfound"), middleware.ReqSignedIn, hs.NotFoundHandler)
|
||||
}
|
||||
|
||||
func (hs *HTTPServer) addMiddlewaresAndStaticRoutes() {
|
||||
|
||||
Reference in New Issue
Block a user