From 260b7cb9e2f0bbb2d0d8def1918db3ed0201907e Mon Sep 17 00:00:00 2001 From: Edoardo Spadolini Date: Tue, 8 Jul 2025 18:17:35 +0200 Subject: [PATCH] Trace the correct error return value in Router.DialWindowsDesktop (#56559) --- lib/proxy/router.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/proxy/router.go b/lib/proxy/router.go index fb1fa318457..1f33482b877 100644 --- a/lib/proxy/router.go +++ b/lib/proxy/router.go @@ -338,8 +338,7 @@ func (r *Router) DialWindowsDesktop(ctx context.Context, clientSrcAddr, clientDs attribute.String("cluster", clusterName), ), ) - - defer tracing.EndSpan(span, err) + defer func() { tracing.EndSpan(span, err) }() site := r.localSite if clusterName != r.clusterName {