From 8a02b926a5d54cebed4144360032cf334bf9fd1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Pablo=20Villaf=C3=A1=C3=B1ez?= Date: Tue, 17 Sep 2024 17:57:44 +0200 Subject: [PATCH] fix: missing return in the tracing middleware if we want to skip it --- services/collaboration/pkg/middleware/tracing.go | 1 + 1 file changed, 1 insertion(+) diff --git a/services/collaboration/pkg/middleware/tracing.go b/services/collaboration/pkg/middleware/tracing.go index 4b78352370..869549458a 100644 --- a/services/collaboration/pkg/middleware/tracing.go +++ b/services/collaboration/pkg/middleware/tracing.go @@ -21,6 +21,7 @@ func CollaborationTracingMiddleware(next http.Handler) http.Handler { if err != nil { // if we can't get the context, skip this middleware next.ServeHTTP(w, r) + return } span := trace.SpanFromContext(r.Context())