Tracing: Fix excluding paths from tracing (#115394)

fix: not tracing paths correctly
This commit is contained in:
Levente Balogh
2025-12-16 11:02:40 +01:00
committed by GitHub
parent bf753c621a
commit 7913b20cca
3 changed files with 12 additions and 8 deletions
+1 -1
View File
@@ -638,7 +638,7 @@ func (hs *HTTPServer) addMiddlewaresAndStaticRoutes() {
m := hs.web
m.Use(requestmeta.SetupRequestMetadata())
m.Use(middleware.RequestTracing(hs.tracer, middleware.SkipTracingPaths))
m.Use(middleware.RequestTracing(hs.tracer, middleware.ShouldTraceWithExceptions))
m.Use(middleware.RequestMetrics(hs.Features, hs.Cfg, hs.promRegister))
m.UseMiddleware(hs.LoggerMiddleware.Middleware())