SIGN IN SIGN UP

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

Nitro `3.0.260522-beta`
([nitrojs/nitro#4240](https://github.com/nitrojs/nitro/pull/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.
A
Abdelrahman Awad committed
c5b44684e4ff7f47fff94f916541c4bcd188ff19
Parent: 5cebcd3
Committed by GitHub <noreply@github.com> on 5/26/2026, 11:56:46 AM