You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(remix): Read action form data concurrently with the action
`deferSpanEnd` read the form data only at `asyncEnd`, after `callRouteAction` had
already returned. A channel can't delay the action promise the way the vendored
instrumentation did, so the parent `requestHandler` span could finish and flush
the transaction before the form-data attributes were applied and the ACTION span
ended, dropping that data.
Start the form-data read at span start (from a clone taken before the action
consumes the body) so it overlaps the action's execution. By `asyncEnd` the read
is virtually always resolved, so applying the attributes and ending the span
costs a single microtask - comfortably inside the response-rendering gap before
the parent span ends.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments