Frontend logging: handle logging endpoints without expensive middleware (#54960)

This commit is contained in:
Domas
2022-09-12 13:04:43 +03:00
committed by GitHub
parent b287047052
commit b5c67fe0dd
6 changed files with 99 additions and 142 deletions

View File

@ -572,6 +572,7 @@ func (hs *HTTPServer) addMiddlewaresAndStaticRoutes() {
m.Use(hs.apiHealthHandler)
m.Use(hs.metricsEndpoint)
m.Use(hs.pluginMetricsEndpoint)
m.Use(hs.frontendLogEndpoints())
m.UseMiddleware(hs.ContextHandler.Middleware)
m.Use(middleware.OrgRedirect(hs.Cfg, hs.SQLStore))