Skip to content

fix(v10/core): Apply dataCollection.urlQueryParams to collected URLs and query strings - #24572

Merged
chargome merged 8 commits into
v10from
backport-url-query-v10
Sep 22, 2026
Merged

chargome merged 8 commits into
v10from
backport-url-query-v10

Conversation

@chargome

Copy link
Copy Markdown
Member

Backport of: #23060, #23061, #23143, and the URL-query part of #22853

dataCollection.urlQueryParams shipped on v10, but it was never wired to the URL fields, so request.url, request.query_string, url.full, url.query and their legacy aliases were sent unfiltered. The wiring only landed on develop, after the v10 branch was cut.

Differences to the original PRs

  • feat(core)!: Align request data collection with v11 defaults #22853: only the requestdata.ts query-string filtering and the filterQueryParams rewrite it depends on are included. The v11 default changes, the include resolution rewrite, event cookie/header filtering, the browser httpclient changes and the MIGRATION notes are left out, as they are breaking or out of scope.
  • v10 attribute names are kept. Where develop writes url.full / url.query, v10 still writes http.url, http.query, http.target and url; these are now filtered instead of renamed. Tests assert on the v10 names.
  • filterCollectedUrlQuery preserves a leading ?, because v10 records URL.search verbatim in http.query / url.query.
  • Legacy duplicates outside the original diff are filtered too (http.url in the core and node-core http server spans, core fetch, browser fetch/XHR).
  • google-cloud-http: only the span-name query stripping is kept; v10 never set url.full there.
  • nitro: unchanged, since getHttpSpanDetailsFromUrlObject already falls back to getClient().
  • The undici breadcrumb test lives in node-core, where that code sits on v10.
  • Extra commit for sites that no longer exist on develop: Next.js pages/edge wrapApiHandlerWithSentry, Remix http.url (tracing channel and vendored instrumentation), and Ember url.full.

chargome and others added 5 commits September 21, 2026 19:02
@chargome chargome self-assigned this Sep 21, 2026
@chargome

Copy link
Copy Markdown
Member Author

bugbot run

@github-actions

github-actions Bot commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 28.23 kB added added
@sentry/browser - with treeshaking flags 26.66 kB added added
@sentry/browser (incl. Tracing) 47.12 kB added added
@sentry/browser (incl. Tracing + Span Streaming) 48.91 kB added added
@sentry/browser (incl. Tracing, Profiling) 51.89 kB added added
@sentry/browser (incl. Tracing, Replay) 86.4 kB added added
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 76.06 kB added added
@sentry/browser (incl. Tracing, Replay with Canvas) 91.13 kB added added
@sentry/browser (incl. Tracing, Replay, Feedback) 103.76 kB added added
@sentry/browser (incl. Feedback) 45.39 kB added added
@sentry/browser (incl. sendFeedback) 33.03 kB added added
@sentry/browser (incl. FeedbackAsync) 38.16 kB added added
@sentry/browser (incl. Metrics) 29.31 kB added added
@sentry/browser (incl. Logs) 29.54 kB added added
@sentry/browser (incl. Metrics & Logs) 30.23 kB added added
@sentry/react 30.02 kB added added
@sentry/react (incl. Tracing) 49.43 kB added added
@sentry/vue 33.66 kB added added
@sentry/vue (incl. Tracing) 49.13 kB added added
@sentry/svelte 28.25 kB added added
CDN Bundle 30.58 kB added added
CDN Bundle (incl. Tracing) 49.07 kB added added
CDN Bundle (incl. Logs, Metrics) 32.16 kB added added
CDN Bundle (incl. Tracing, Logs, Metrics) 50.39 kB added added
CDN Bundle (incl. Replay, Logs, Metrics) 71.5 kB added added
CDN Bundle (incl. Tracing, Replay) 86.67 kB added added
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 87.93 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) 92.48 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 93.75 kB added added
CDN Bundle - uncompressed 90.96 kB added added
CDN Bundle (incl. Tracing) - uncompressed 147.96 kB added added
CDN Bundle (incl. Logs, Metrics) - uncompressed 95.67 kB added added
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 151.94 kB added added
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 220.63 kB added added
CDN Bundle (incl. Tracing, Replay) - uncompressed 267.39 kB added added
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 271.35 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 281.09 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 285.04 kB added added
@sentry/nextjs (client) 51.96 kB added added
@sentry/sveltekit (client) 47.57 kB added added
@sentry/core/server 81.14 kB added added
@sentry/core/browser 67.27 kB added added
@sentry/node-core 63.84 kB added added
@sentry/node 126.53 kB added added
@sentry/node (incl. diagnostics channel injection) 170.67 kB added added
@sentry/node/import (ESM hook with diagnostics-channel injection) 166 B added added
@sentry/node/light 51.95 kB added added
@sentry/node - without tracing 75.61 kB added added
@sentry/aws-serverless 84.79 kB added added
@sentry/cloudflare (withSentry) - minified 204.34 kB added added
@sentry/cloudflare (withSentry) 503.71 kB added added

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

Comment thread packages/opentelemetry/src/utils/parseSpanDescription.ts
Comment thread packages/sveltekit/src/server-common/handle.ts Outdated
…l spans and SvelteKit root spans

Addresses review feedback: the OTel exporter rebuilt `http.query` from the raw span URL, and the SvelteKit handle copied the kit root span URL into `url.full` unfiltered.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@chargome

Copy link
Copy Markdown
Member Author

bugbot run

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 9f72550. Configure here.

chargome and others added 2 commits September 22, 2026 10:30
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…ery` unchanged

v10 call sites assigned `URL.search` verbatim, so a query-less URL emitted `url.query: ''`. Returning `undefined` for empty input dropped the attribute and changed the wire shape.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@chargome
chargome marked this pull request as ready for review September 22, 2026 09:08
@chargome
chargome requested review from a team as code owners September 22, 2026 09:08
@chargome
chargome requested review from isaacs, logaretm, mydea, nicohrubec and s1gr1d and removed request for a team September 22, 2026 09:08
@chargome
chargome merged commit c0eb753 into v10 Sep 22, 2026
311 of 313 checks passed
@chargome
chargome deleted the backport-url-query-v10 branch September 22, 2026 09:11
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.

2 participants