fix(comment): add a dedicated comment parsing middleware (#8855)

## 📄 Summary

- add a dedicated comment parsing middleware. This removes duplication and double parsing of referrer.
This commit is contained in:
Vibhu Pandey
2025-08-20 20:20:28 +05:30
committed by GitHub
parent 9c2f127282
commit a3f32b3d85
14 changed files with 344 additions and 192 deletions

View File

@@ -257,6 +257,7 @@ func (s *Server) createPublicServer(apiHandler *api.APIHandler, web web.Web) (*h
s.config.APIServer.Timeout.Max,
).Wrap)
r.Use(middleware.NewLogging(s.signoz.Instrumentation.Logger(), s.config.APIServer.Logging.ExcludedRoutes).Wrap)
r.Use(middleware.NewComment().Wrap)
apiHandler.RegisterRoutes(r, am)
apiHandler.RegisterLogsRoutes(r, am)