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
{{ message }}
Repository navigation
@sentry/nextjs on Bun: Next.js telemetry requests in next dev create root http.client spans #26931
With bun --bun next dev, the requests that Next.js sends for its telemetry and its version check create root http.client spans:
POST https://telemetry.nextjs.org/api/v1/record
GET registry.npmjs.org
These spans have no parent span, and they join the trace of load instrumentation module. With next dev on Node.js, the same app sends no spans for these requests. next start on Bun does not send them, as Next.js sends this telemetry only in dev.
Steps to reproduce
Set up a Next.js 16 app with @sentry/nextjs and @sentry/bun (instrumentation.ts, withSentryConfig, tracesSampleRate: 1.0).
Run bun --bun next dev.
Open the trace of load instrumentation module.
Expected result
The same as on Node.js: no spans for Next.js-internal requests that are not part of a request.
Actual result
Bun:
Node.js:
Tested with @sentry/nextjs from develop (9bba64d, with #26923), Next.js 16.4.6, Bun 1.4.5 and Node.js 22.23.1. With the released 11.18.0, next dev on Bun usually crashes at startup (#26911), so this problem shows only after that fix is released.
Activity
linear-code commentedon Nov 26, 2026
JS-4167