From dc8560231c78197e28be1512b8e2f956f8a9f72b Mon Sep 17 00:00:00 2001 From: Keepers Date: Thu, 3 Nov 2022 18:07:22 -0600 Subject: [PATCH] fix span reporting null check (#1442) ## Type of change - [x] :bug: Bugfix ## Test Plan - [x] :muscle: Manual --- src/internal/diagnostics/diagnostics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal/diagnostics/diagnostics.go b/src/internal/diagnostics/diagnostics.go index 771729bd1..462986135 100644 --- a/src/internal/diagnostics/diagnostics.go +++ b/src/internal/diagnostics/diagnostics.go @@ -153,7 +153,7 @@ func Span(ctx context.Context, name string, ext ...extender) (_ctx context.Conte _fn = func() { rgn.End() - if span != nil { + if span == nil { return }