Skip to content

fix(solidstart): Read server action route from the request's root span - #25513

Merged
andreiborza merged 1 commit into
developfrom
fix/solidstart-server-action-root-span
Oct 20, 2026
Merged

andreiborza merged 1 commit into
developfrom
fix/solidstart-server-action-root-span

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

This fixes the E2E solidstart-2 failure on develop. Since #25295, the "sends a server action span on client navigation" test times out because the POST getPrefecture segment is never sent.

Root cause: After #25295, Nitro's h3 route handler opens a handler span instead of a nested http.server span. withServerActionInstrumentation decided whether to rename the segment by reading the attributes of the active span. Now that span is the handler span, which has no url.path, so the /_server check never matched and the server action name was never applied.

The fix reads the attributes from the root span instead. That is the request's http.server span, the one setHttpServerSpanRouteAttribute renames, so the check and the rename now target the same span whatever the framework nests in between.

Locally, solidstart-2 E2E fails 1/9 (this test) without the change and passes 9/9 with it.

via Francesco Gringl-Novy.

--

View Junior Session [Sentry]

Since Nitro's h3 route handler opens a `handler` span instead of a nested
`http.server` span (#25295), the active span during a server function call has
no `url.path`, so `withServerActionInstrumentation` no longer recognized
`/_server` requests and stopped renaming the segment to the server action name.

Co-Authored-By: Francesco Gringl-Novy <francesco.novy@sentry.io>
@mydea mydea self-assigned this Oct 19, 2026
@mydea
mydea marked this pull request as ready for review October 19, 2026 14:07
@mydea
mydea requested a review from a team as a code owner October 19, 2026 14:07
@mydea
mydea requested review from andreiborza, chargome and s1gr1d and removed request for a team October 19, 2026 14:07
@andreiborza
andreiborza merged commit eb60783 into develop Oct 20, 2026
48 checks passed
@andreiborza
andreiborza deleted the fix/solidstart-server-action-root-span branch October 20, 2026 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants