Repository navigation
fix(solidstart): Ignore build output spans with span streaming - #26782
Merged
Merged
Conversation
The build asset filter was an event processor, and event processors do not run with span streaming. So the SDK sent a span for every request to `/_build/`. Add an `ignoreSpans` default on `url.path` instead, which works in both trace modes.
Contributor
size-limit report 📦Compared: 2763cf9 (PR test merge using develop at e83f5db) Against: e83f5db (develop) · base run #67702 ✅ Baseline matches: this diff contains only this PR's changes.
|
Contributor
Optional E2E testsAll optional checks were successful. 2 successful. See the run. |
s1gr1d
marked this pull request as ready for review
November 24, 2026 08:24
javascript-sdk-gitflow
Bot
requested review from
JPeer264,
chargome and
nicohrubec
November 24, 2026 08:24
…ld-asset-spans # Conflicts: # packages/solidstart/src/server/sdk.ts
The filter matched only `/_build/`, so with a base path the SDK still sent spans for build files. It now reads the base path: from the build on SolidStart 2, and from `instrument.server.mjs` on SolidStart 1, which `node --import` loads before the server bundle sets it.
s1gr1d
commented
Nov 24, 2026
Member
Author
There was a problem hiding this comment.
the tests are in the tunnel because this is the only app that runs under a base path.
…ld-asset-spans # Conflicts: # packages/solidstart/src/common/tunnel.ts
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.
Similar to #26781 (same on Nuxt)
What
With span streaming (the default), the SolidStart SDK sent a span for every request to its build output under
/_build/. Now the SDK ignores these requests in both trace modes, also under a base path, and it keeps real routes./_build/assets/app.js.map.jsand.css/app/_build/assets/app.js.map_build, for example/users/_build/"Static mode" is
traceLifecycle: 'static'. Bold marks the problems this PR fixes.Why
The old filter was an event processor that dropped transactions by name. Event processors do not run with span streaming, so the filter silently stopped working. Now the SDK adds an
ignoreSpansdefault onurl.pathinstead, which works in both modes. This is the same fix as for Nuxt.The filter needs the base path (
server.baseURLon SolidStart 1, Vitebaseon SolidStart 2) whenSentry.init()runs. SolidStart 2 bundles the SDK into the server build, so the build sets the value there. SolidStart 1 loadsinstrument.server.mjswithnode --importbefore the server bundle, so the build now writes the base path into that file too. In development, the server SDK does not know the base path yet, so there the filter only matches/_build/.On SolidStart 2, the SDK still sends spans for other static files such as
/favicon.ico, because Nitro's server spans skip the HTTP integration's static file filter. That needs a separate fix in@sentry/server-utils.