[release-12.3.1] Tracing: Fix excluding paths from tracing (#115399)

Tracing: Fix excluding paths from tracing  (#115394)

fix: not tracing paths correctly
(cherry picked from commit 7913b20cca)

Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>
This commit is contained in:
grafana-delivery-bot[bot]
2025-12-16 15:17:13 +01:00
committed by GitHub
co-authored by Levente Balogh
parent e8f080d471
commit 0d1a5b4420
3 changed files with 12 additions and 8 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ func (s *frontendService) addMiddlewares(m *web.Mux) {
loggermiddleware := loggermw.Provide(s.cfg, s.features)
m.Use(requestmeta.SetupRequestMetadata())
m.Use(middleware.RequestTracing(s.tracer, middleware.TraceAllPaths))
m.Use(middleware.RequestTracing(s.tracer, middleware.ShouldTraceAllPaths))
m.Use(middleware.RequestMetrics(s.features, s.cfg, s.promRegister))
m.UseMiddleware(s.contextMiddleware())