From 3a3a0582ebe997ec44c8fc49f5c051c2b897e223 Mon Sep 17 00:00:00 2001 From: alonsopec89 Date: Wed, 20 Nov 2024 08:21:51 -0600 Subject: [PATCH] Fix: display error in inspect page (#1188) * Fix: display error in inspect page * Fix: display error in error callout * Fix: use the right enum --- go/core/tracing/tracing.go | 1 + 1 file changed, 1 insertion(+) diff --git a/go/core/tracing/tracing.go b/go/core/tracing/tracing.go index 3869c8dbf..cae0bf161 100644 --- a/go/core/tracing/tracing.go +++ b/go/core/tracing/tracing.go @@ -119,6 +119,7 @@ func RunInNewSpan[I, O any]( if err != nil { sm.State = spanStateError span.SetStatus(codes.Error, err.Error()) + span.RecordError(err) return base.Zero[O](), err } // TODO: the typescript code checks if sm.State == error here. Can that happen?