Skip to content

fix(solidstart): Name server action requests from the root span - #25558

Closed
sentry-junior[bot] wants to merge 1 commit into
developfrom
fix/solidstart-server-action-root-span
Closed

sentry-junior[bot] wants to merge 1 commit into
developfrom
fix/solidstart-server-action-root-span

Conversation

@sentry-junior

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

Copy link
Copy Markdown
Contributor

The solidstart-2 E2E job isn't flaky. It has failed every time it has run on develop since Oct 19, always on sends a server action span on client navigation. Nobody caught it because the job is optional.

Root cause: since #25295, the Nitro integration opens a handler child span (POST /**) for every route under the request's http.server root span. Inside a server function, that handler span is now the active span. withServerActionInstrumentation was reading url.path from the active span, but url.path only lives on the root span. So the /_server check never matched, and the request kept the bare POST segment name (span streaming drops the URL) instead of becoming POST getPrefecture.

The fix reads the request attributes from the root span, which is what setHttpServerSpanRouteAttribute already updates. On SolidStart 1 (vinxi) the active span already is the root, so nothing changes there.

via Jan Peer Stöcklmair.

--

View Junior Session [Sentry]

The Nitro integration now opens a child handler span for each route, so the
active span inside a server function no longer carries `url.path`. Read the
request attributes from the root `http.server` span instead so `/_server`
requests are named after the server action again.

Co-Authored-By: Jan VamPeer Stöcklmair <jan.peer@sentry.io>
@JPeer264 JPeer264 closed this Oct 20, 2026
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.

1 participant