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

(cherry picked from commit b5c67fe0dd)
This commit is contained in:
Domas
2022-09-12 13:38:03 +03:00
committed by GitHub
parent a41e6ae453
commit 28997ed169
6 changed files with 99 additions and 142 deletions
+1
View File
@@ -550,6 +550,7 @@ func (hs *HTTPServer) addMiddlewaresAndStaticRoutes() {
m.Use(hs.apiHealthHandler)
m.Use(hs.metricsEndpoint)
m.Use(hs.pluginMetricsEndpoint)
m.Use(hs.frontendLogEndpoints())
m.Use(hs.ContextHandler.Middleware)
m.Use(middleware.OrgRedirect(hs.Cfg, hs.SQLStore))