FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat(core): Add route provider API for parameterized route resolution by logaretm · Pull Request #23551 · getsentry/sentry-javascript · GitHub

feat(core): Add route provider API for parameterized route resolution - #23551

Draft
logaretm wants to merge 1 commit into
developfrom
awad/route-provider-api
Draft

feat(core): Add route provider API for parameterized route resolution#23551
logaretm wants to merge 1 commit into
developfrom
awad/route-provider-api

Conversation

logaretm commented Aug 24, 2026
edited
Loading

Copy link
Copy Markdown
Member

Adds the route provider API to core so framework SDKs can register how to resolve a URL to a parameterized route, and wires up bfcacheIntegration as the first consumer since that is where the fragmentation currently produces a raw URL on a metric dimension.

bfcache keeps its pathname fallback, so nothing changes until a provider is registered.

closes #23556

github-actions Bot commented Aug 24, 2026
edited
Loading

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 28.57 kB - -
@sentry/browser - with treeshaking flags 26.92 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 26.82 kB - -
@sentry/browser (incl. Tracing) 48.34 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 48.36 kB - -
@sentry/browser (incl. Tracing, Profiling) 51.25 kB - -
@sentry/browser (incl. Tracing, Replay) 87.74 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 77.2 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 92.45 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 105.13 kB - -
@sentry/browser (incl. Feedback) 45.81 kB - -
@sentry/browser (incl. sendFeedback) 33.36 kB - -
@sentry/browser (incl. FeedbackAsync) 38.47 kB - -
@sentry/browser (incl. Metrics) 29.52 kB - -
@sentry/browser (incl. Logs) 29.8 kB - -
@sentry/browser (incl. Metrics & Logs) 30.45 kB - -
@sentry/react 30.33 kB - -
@sentry/react (incl. Tracing) 50.52 kB - -
@sentry/vue 35.4 kB - -
@sentry/vue (incl. Tracing) 50.32 kB - -
@sentry/svelte 28.6 kB - -
CDN Bundle 30.68 kB +1.21% +366 B 🔺
CDN Bundle (incl. Tracing) 49.24 kB +0.75% +366 B 🔺
CDN Bundle (incl. Logs, Metrics) 32.93 kB +1.21% +393 B 🔺
CDN Bundle (incl. Tracing, Logs, Metrics) 51.12 kB +0.76% +385 B 🔺
CDN Bundle (incl. Replay, Logs, Metrics) 73.27 kB +0.5% +363 B 🔺
CDN Bundle (incl. Tracing, Replay) 86.66 kB +0.38% +325 B 🔺
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 88.53 kB +0.44% +380 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) 92.43 kB +0.4% +367 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 94.34 kB +0.36% +335 B 🔺
CDN Bundle - uncompressed 91.14 kB +1.35% +1.21 kB 🔺
CDN Bundle (incl. Tracing) - uncompressed 147.33 kB +0.83% +1.21 kB 🔺
CDN Bundle (incl. Logs, Metrics) - uncompressed 97.44 kB +1.26% +1.21 kB 🔺
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 153.02 kB +0.8% +1.21 kB 🔺
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 226.38 kB +0.54% +1.21 kB 🔺
CDN Bundle (incl. Tracing, Replay) - uncompressed 266.6 kB +0.46% +1.21 kB 🔺
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 272.28 kB +0.45% +1.21 kB 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 280.3 kB +0.44% +1.21 kB 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 285.96 kB +0.43% +1.21 kB 🔺
@sentry/nextjs (client) 53.06 kB - -
@sentry/sveltekit (client) 48.76 kB - -
@sentry/core/server 64.95 kB - -
@sentry/core/browser 52.48 kB +0.72% +373 B 🔺
@sentry/node 117.49 kB +0.03% +24 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 85.18 kB - -
@sentry/node - without tracing 82.03 kB +0.03% +24 B 🔺
@sentry/aws-serverless 91.46 kB +0.03% +22 B 🔺
@sentry/cloudflare (withSentry) - minified 194.68 kB - -
@sentry/cloudflare (withSentry) 481.3 kB - -

View base workflow run

logaretm force-pushed the awad/route-provider-api branch 2 times, most recently from 5e49315 to 905570f Compare August 24, 2026 20:52
Framework SDKs can register a provider that resolves a URL to a low-cardinality
route name, so integrations stop each reaching for the route their own way.

Wires up `bfcacheIntegration` as the first consumer: its segment name ends up as
a metric dimension, where an unparameterized URL is unbounded cardinality.
logaretm force-pushed the awad/route-provider-api branch from 905570f to 488ffe0 Compare August 24, 2026 20:57
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Route parameterization is fragmented across browser integrations

1 participant


Back | FazBrowse Home | New Git URL