Skip to content

test(nitro-3): Update e2e tests for h3 route handler tracing#21152

Open
logaretm wants to merge 1 commit into
developfrom
feat/nitro-3-h3-route-handler-spans
Open

test(nitro-3): Update e2e tests for h3 route handler tracing#21152
logaretm wants to merge 1 commit into
developfrom
feat/nitro-3-h3-route-handler-spans

Conversation

@logaretm
Copy link
Copy Markdown
Member

@logaretm logaretm commented May 24, 2026

Nitro 3.0.260522-beta (nitrojs/nitro#4240) now wraps file-based route handlers with wrapHandlerWithTracing from h3/tracing at build time. This means h3 emits route handler spans via diagnostics_channel, fixing the missing route spans we had workarounds for.

so this PR bumps nitro test app from ^3.0.260429-beta to ^3.0.260522-beta, and asserts that startSpan assertions and db spans are now children of the h3 route handler span, not the srvx span directly.

Also errors thrown in route handlers are now caught by the h3 tracing channel (auto.http.nitro.onTraceError) instead of going through Nitro's error hook (captureErrorHook), and are no longer wrapped in an HTTPError since those happen on the handler level now.

@logaretm logaretm force-pushed the feat/nitro-3-h3-route-handler-spans branch from bda3cd6 to 098e446 Compare May 24, 2026 18:00
@logaretm logaretm requested review from a team, mydea and s1gr1d and removed request for a team May 24, 2026 18:00
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