Skip to content

feat(sveltekit): Register a route provider backed by reported route ids - #23784

Closed
logaretm wants to merge 1 commit into
awad/route-provider-nextjsfrom
awad/route-provider-sveltekit
Closed

feat(sveltekit): Register a route provider backed by reported route ids#23784
logaretm wants to merge 1 commit into
awad/route-provider-nextjsfrom
awad/route-provider-sveltekit

Conversation

@logaretm

Copy link
Copy Markdown
Member

Registers a route provider for SvelteKit, for both the Kit 2 and Kit 3 variants.

SvelteKit has no public route matcher and page.route.id is not available synchronously, so this is a cache-backed provider: it answers from route ids the instrumentation has already reported rather than by matching. Both variants already read the route id to rename the span, so they record it on the way through.

Part of #23556

SvelteKit has no public route matcher and `page.route.id` is not available
synchronously, so the provider answers from route ids the instrumentation has
already seen rather than by matching. Uses core's cached provider, so the
statefulness stays private and the API stays URL in, string out.
@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 28.56 kB added added
@sentry/browser - with treeshaking flags 26.92 kB added added
@sentry/browser - with treeshaking flags tracing without tracing 26.82 kB added added
@sentry/browser (incl. Tracing) 48.96 kB added added
@sentry/browser (incl. Tracing + Span Streaming) 48.97 kB added added
@sentry/browser (incl. Tracing, Profiling) 51.89 kB added added
@sentry/browser (incl. Tracing, Replay) 88.47 kB added added
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 77.8 kB added added
@sentry/browser (incl. Tracing, Replay with Canvas) 93.16 kB added added
@sentry/browser (incl. Tracing, Replay, Feedback) 106.11 kB added added
@sentry/browser (incl. Feedback) 46.05 kB added added
@sentry/browser (incl. sendFeedback) 33.62 kB added added
@sentry/browser (incl. FeedbackAsync) 38.73 kB added added
@sentry/browser (incl. Metrics) 29.51 kB added added
@sentry/browser (incl. Logs) 29.8 kB added added
@sentry/browser (incl. Metrics & Logs) 30.43 kB added added
@sentry/react 30.3 kB added added
@sentry/react (incl. Tracing) 51.17 kB added added
@sentry/vue 35.73 kB added added
@sentry/vue (incl. Tracing) 51.21 kB added added
@sentry/svelte 28.59 kB added added
CDN Bundle 30.72 kB added added
CDN Bundle (incl. Tracing) 49.82 kB added added
CDN Bundle (incl. Logs, Metrics) 32.98 kB added added
CDN Bundle (incl. Tracing, Logs, Metrics) 51.7 kB added added
CDN Bundle (incl. Replay, Logs, Metrics) 73.51 kB added added
CDN Bundle (incl. Tracing, Replay) 87.28 kB added added
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 89.15 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) 93.2 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 95.14 kB added added
CDN Bundle - uncompressed 91.23 kB added added
CDN Bundle (incl. Tracing) - uncompressed 148.6 kB added added
CDN Bundle (incl. Logs, Metrics) - uncompressed 97.53 kB added added
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 154.29 kB added added
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 226.69 kB added added
CDN Bundle (incl. Tracing, Replay) - uncompressed 268.1 kB added added
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 273.77 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 281.8 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 287.46 kB added added
@sentry/nextjs (client) 53.99 kB added added
@sentry/sveltekit (client) 49.74 kB added added
@sentry/core/server 65.67 kB added added
@sentry/core/browser 52.26 kB added added
@sentry/node 123.77 kB added added
@sentry/node/import (ESM hook with diagnostics-channel injection) 85.53 kB added added
@sentry/node - without tracing 88.03 kB added added
@sentry/node - without channel injection 103.18 kB added added
@sentry/aws-serverless 96.42 kB added added
@sentry/cloudflare (withSentry) - minified 201.04 kB added added
@sentry/cloudflare (withSentry) 500.26 kB added added

@logaretm logaretm closed this Aug 31, 2026
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.

1 participant