Repository navigation
fix(nextjs): Drop the spans of the telemetry and version check requests of next dev - #26934
Draft
sentry-junior[bot] wants to merge 2 commits into
Draft
sentry-junior[bot] wants to merge 2 commits into
sentry-junior[bot] wants to merge 2 commits into
Conversation
…ts of `next dev` Closes #26931 Co-Authored-By: Jan Peer Stöcklmair <10677263+JPeer264@users.noreply.github.com>
Contributor
size-limit report 📦Compared: 8906e29 (PR test merge using develop at 71f41ed) Against: 71f41ed (develop) · base run #68183 ✅ Baseline matches: this diff contains only this PR's changes.
|
Contributor
Optional E2E testsSome optional checks were not successful. They do not block the merge. 8 not successful, 57 successful. See the run.
Successful checks
|
Co-Authored-By: Jan Peer Stöcklmair <10677263+JPeer264@users.noreply.github.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
@sentry/nextjsno longer sendshttp.clientspans for the requests thatnext devsends on its own: its telemetry (POST https://telemetry.nextjs.org/api/v1/record) and its version check (GET https://registry.npmjs.org/-/package/next/dist-tags).Why
These requests are not part of a request, so with span streaming each one becomes a root span. This is not specific to Bun: on Node.js,
next devalso sends a rootGET registry.npmjs.orgspan for the version check once a browser opens the app. Node.js sends no telemetry span only because the telemetryfetchof Next.js 16.4 fails on Node.js before undici creates the request (Expected signal ("AbortSignal {}") to be an instance of AbortSignal), with or without Sentry. So the filter goes into the shared Next.js serverignoreSpans, not into the Bun integrations. It matches onhttp.clientplus the exacturl.full, so requests that an app sends to other npm registry URLs keep their spans.Closes: #26931
via @JPeer264.
--
View Session [Sentry]