Repository navigation
Conversation
00ebcf1 to
cef1cce
Compare
a7832d1 to
c7352bc
Compare
c7352bc to
fb02dd9
Compare
fb02dd9 to
14e1463
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 14e1463. Configure here.
| return nil | ||
| } | ||
| return t.span.Load() | ||
| return t.ctx |
There was a problem hiding this comment.
SQL tx retains request context
Medium Severity
sentryTx now stores the context returned by StartSpan because Span.Context() was removed, but finish only clears the span pointer. After Commit/Rollback, activeTx still holds that context on the pooled connection, so the request context, isolation scope, and span stay reachable until a later Begin/BeginTx overwrites it. When there is no parent span, startTxSpan still returns the incoming context and it is stored even though contextOrNil never reads it.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 14e1463. Configure here.
14e1463 to
48d688b
Compare
48d688b to
23ed583
Compare
…saction StartSpan takes a name: the transaction name of a root span or the description of a child. StartTransaction, StartChild, SetDynamicSamplingContext, WithTransactionName and WithDescription go with it.
23ed583 to
853be1a
Compare


Description
This removes the
StartTransactionandspan.StartChildhelpers along with the optionsWithTransactionName,WithDescription. This is a precursor to the span first changes, whereStartSpanneeds to returnctx, spanfor the apis to work. This change should be introduced with v1 because:span.Contextto be passed so it makes sense for the api to return the ctx along with the span.StartSpannow means no duplicates while working on span streaming.