fix: missing return in the tracing middleware if we want to skip it

This commit is contained in:
Juan Pablo Villafáñez
2024-09-17 17:57:44 +02:00
parent 99e61f93a1
commit 8a02b926a5

View File

@@ -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())