Skip to content

Commit 6c4fbf5

Browse files
Fix span tagging
1 parent 08c5bb9 commit 6c4fbf5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

worker/mutation.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -850,11 +850,11 @@ func CommitOverNetwork(ctx context.Context, tc *api.TxnContext) (uint64, error)
850850
h := hooks.GetHooks()
851851
tctx, err := h.CommitOrAbort(ctx, tc)
852852
if err != nil {
853-
span.AddEvent("Error in embedded CommitOrAbort", oteltrace.WithAttributes(
853+
span.AddEvent("Error in CommitOrAbort", oteltrace.WithAttributes(
854854
attribute.String("error", err.Error())))
855855
return 0, err
856856
}
857-
span.AddEvent("Embedded commit status", oteltrace.WithAttributes(
857+
span.AddEvent("Commit status", oteltrace.WithAttributes(
858858
attribute.Int64("commitTs", int64(tctx.CommitTs)),
859859
attribute.Bool("committed", tctx.CommitTs > 0)))
860860

0 commit comments

Comments
 (0)