GeezerVison is showing github.com — feat(sveltekit): Serve the managed tunnel from `sentryHandle` under the app's base path by logaretm · Pull Request #25415 · getsentry/sentry-javascript
Conversation
logaretm
commented
Oct 15, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Implements sveltekit tunnel wiring, the way it works is:
- Our Vite plugin injects the base path (
kit.paths.base) if it exists to both server/client bundles.
- Our entry handler (
sentryHandle) will check for any incoming request if it is a tunneled one, and if it matches it handles it.
(I made the decision to respect base paths rather than ignoring them, this is something to review in #25199)
This also adds a couple of shared e2e helpers to @sentry-internal/test-utils that the rest of the stack uses. The sveltekit-3 tunnel variants cover dev and prod, and there's one for Cloudflare Workers too.
For reviewers: if you need an overview of what this is, refer to #25199.
closes #20256
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
size-limit report 📦
Compared: 0823bbc (PR test merge using develop at 12757d0)
Against: ca4fc32 (develop) · base run #62950
⚠️ Baseline mismatch: 68 develop commit(s) in the PR build are missing from the baseline. Their size changes also affect this comparison. Compare commits. Re-run once develop's baseline build for 12757d0 finishes.
| Path |
Size |
% Change |
Change |
| @sentry/browser |
30.56 kB |
+2.18% |
+651 B 🔺 |
| @sentry/browser - with treeshaking flags |
28.54 kB |
+1.76% |
+491 B 🔺 |
| @sentry/browser - with treeshaking flags tracing without tracing |
28.42 kB |
+1.69% |
+470 B 🔺 |
| @sentry/browser (incl. Tracing) |
52.8 kB |
+1.35% |
+702 B 🔺 |
| @sentry/browser (incl. Tracing + Span Streaming) |
52.8 kB |
+1.35% |
+699 B 🔺 |
| @sentry/browser (incl. Tracing, Profiling) |
55.77 kB |
+1.31% |
+720 B 🔺 |
| @sentry/browser (incl. Tracing, Replay) |
92.47 kB |
+0.68% |
+621 B 🔺 |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags |
81.21 kB |
+0.61% |
+492 B 🔺 |
| @sentry/browser (incl. Tracing, Replay with Canvas) |
97.21 kB |
+0.66% |
+633 B 🔺 |
| @sentry/browser (incl. Tracing, Replay, Feedback) |
110.2 kB |
+0.63% |
+687 B 🔺 |
| @sentry/browser (incl. Feedback) |
48.12 kB |
+1.49% |
+703 B 🔺 |
| @sentry/browser (incl. sendFeedback) |
35.63 kB |
+1.9% |
+664 B 🔺 |
| @sentry/browser (incl. FeedbackAsync) |
40.76 kB |
+1.71% |
+684 B 🔺 |
| @sentry/browser (incl. Metrics) |
31.57 kB |
+2.05% |
+634 B 🔺 |
| @sentry/browser (incl. Logs) |
31.84 kB |
+2.02% |
+629 B 🔺 |
| @sentry/browser (incl. Metrics & Logs) |
32.52 kB |
+2.12% |
+673 B 🔺 |
| @sentry/react |
32.37 kB |
+1.99% |
+630 B 🔺 |
| @sentry/react (incl. Tracing) |
55.05 kB |
+1.17% |
+635 B 🔺 |
| @sentry/vue |
38.71 kB |
+1.7% |
+646 B 🔺 |
| @sentry/vue (incl. Tracing) |
55.75 kB |
+1.3% |
+715 B 🔺 |
| @sentry/svelte |
30.59 kB |
+2.2% |
+656 B 🔺 |
| @sentry/remix (Remix 3 client bundle) |
57.84 kB |
+1.27% |
+722 B 🔺 |
| CDN Bundle |
32.14 kB |
+1.5% |
+474 B 🔺 |
| CDN Bundle (incl. Tracing) |
53.09 kB |
+0.92% |
+480 B 🔺 |
| CDN Bundle (incl. Logs, Metrics) |
34.34 kB |
+1.4% |
+471 B 🔺 |
| CDN Bundle (incl. Tracing, Logs, Metrics) |
55.04 kB |
+0.89% |
+484 B 🔺 |
| CDN Bundle (incl. Replay, Logs, Metrics) |
75.29 kB |
+0.67% |
+499 B 🔺 |
| CDN Bundle (incl. Tracing, Replay) |
90.75 kB |
+0.53% |
+476 B 🔺 |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) |
92.69 kB |
+0.52% |
+479 B 🔺 |
| CDN Bundle (incl. Tracing, Replay, Feedback) |
96.89 kB |
+0.49% |
+470 B 🔺 |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) |
98.86 kB |
+0.5% |
+486 B 🔺 |
| CDN Bundle - uncompressed |
94.44 kB |
+1.24% |
+1.15 kB 🔺 |
| CDN Bundle (incl. Tracing) - uncompressed |
157.29 kB |
+0.74% |
+1.15 kB 🔺 |
| CDN Bundle (incl. Logs, Metrics) - uncompressed |
100.99 kB |
+1.16% |
+1.15 kB 🔺 |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed |
163.26 kB |
+0.72% |
+1.15 kB 🔺 |
| CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed |
231.03 kB |
+0.51% |
+1.15 kB 🔺 |
| CDN Bundle (incl. Tracing, Replay) - uncompressed |
277.46 kB |
+0.42% |
+1.15 kB 🔺 |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed |
283.42 kB |
+0.41% |
+1.15 kB 🔺 |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed |
291.16 kB |
+0.4% |
+1.15 kB 🔺 |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed |
297.11 kB |
+0.39% |
+1.15 kB 🔺 |
| @sentry/nextjs (client) |
57.91 kB |
+1.05% |
+601 B 🔺 |
| @sentry/sveltekit (client) |
53.29 kB |
+1.55% |
+812 B 🔺 |
| @sentry/core/server |
43.52 kB |
+4.13% |
+1.73 kB 🔺 |
| @sentry/core/browser |
13.81 kB |
- |
- |
| @sentry/node |
153.28 kB |
+0.44% |
+659 B 🔺 |
| @sentry/node/import (ESM hook with diagnostics-channel injection) |
81.58 kB |
- |
- |
| @sentry/node - without tracing |
94.9 kB |
+0.69% |
+649 B 🔺 |
| @sentry/node - without channel injection |
133.91 kB |
+0.47% |
+614 B 🔺 |
| @sentry/aws-serverless |
103.15 kB |
+0.7% |
+710 B 🔺 |
| @sentry/cloudflare (withSentry) - minified |
213.13 kB |
+0.96% |
+2.02 kB 🔺 |
| @sentry/cloudflare (withSentry) |
528.73 kB |
+0.94% |
+4.9 kB 🔺 |
| @sentry/nextjs/cloudflare (withSentry) - minified |
232.75 kB |
+0.88% |
+2.01 kB 🔺 |
View base workflow run
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
cursor
Bot
left a comment
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
cursor
Bot
left a comment
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
cursor
Bot
left a comment
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
|
One or more gzipped bundles increased by more than 500 bytes. If this increase is intentional, add the Accept Bundlesize Increase label to this PR to rerun and accept the check.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Optional E2E tests
Some optional checks were not successful. They do not block the merge. 6 not successful, 59 successful. See the run.
|
Check |
Status |
|
| ❌ |
CI: Optional E2E Tests / E2E react-router-7-framework-instrumentation Test (optional) |
Failing after 2m |
Details |
| ❌ |
CI: Optional E2E Tests / E2E node-openai-decisions-send-to-sentry (latest) Test (optional) |
Failing after 5m |
Details |
| ❌ |
CI: Optional E2E Tests / E2E node-eve (latest) Test (optional) |
Failing after 8m |
Details |
| ❌ |
CI: Optional E2E Tests / E2E node-openai-decisions-send-to-sentry Test (optional) |
Failing after 11m |
Details |
| ❌ |
CI: Optional E2E Tests / E2E node-anthropic-send-to-sentry (latest) Test (optional) |
Failing after 31s |
Details |
| ❌ |
CI: Optional E2E Tests / E2E node-openai-send-to-sentry (latest) Test (optional) |
Failing after 7m |
Details |
Successful checks
|
Check |
Status |
|
| ✅ |
CI: Optional E2E Tests / E2E astro-7-static Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nextjs-14 (canary) Test (optional) |
Successful in 14m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E debug-id-sourcemaps Test (optional) |
Successful in 24s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E cloudflare-pi-durable (latest) Test (optional) |
Successful in 32s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E cloudflare-think Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nextjs-16-standalone (canary, turbopack) Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E angular (canary) Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E gen-ai-libraries (cloudflare) Test (optional) |
Successful in 28s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E cloudflare-mastra Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E cloudflare-pi-durable Test (optional) |
Successful in 3m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E angular (canary) Test (optional) |
Successful in 6m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E cloudflare-think (ai v6) Test (optional) |
Successful in 3m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E cloudflare-agent Test (optional) |
Successful in 12m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E astro-7 Test (optional) |
Successful in 5m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E cloudflare-flue-send-to-sentry Test (optional) |
Successful in 2m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nextjs-16-tunnel (cloudflare) Test (optional) |
Successful in 51s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E cloudflare-workers-send-to-sentry Test (optional) |
Successful in 3m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-eve Test (optional) |
Successful in 6m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nextjs-16 (cloudflare, latest) Test (optional) |
Successful in 11m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nextjs-14 (latest) Test (optional) |
Successful in 2m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E deno (latest) Test (optional) |
Successful in 46s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nextjs-15 (latest) Test (optional) |
Successful in 3m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nextjs-15 (turbo) Test (optional) |
Successful in 3m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nuxt-5 Test (optional) |
Successful in 2m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-anthropic-send-to-sentry Test (optional) |
Successful in 2m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nextjs-16 (canary, webpack) Test (optional) |
Successful in 12m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nextjs-16 (vinext, bun) Test (optional) |
Successful in 2m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-eve (orchestrion) Test (optional) |
Successful in 3m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-express-mcp-v1 Test (optional) |
Successful in 41s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nextjs-orpc Test (optional) |
Successful in 5m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-express-send-to-sentry Test (optional) |
Successful in 2m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nextjs-16 (deno) Test (optional) |
Successful in 10m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-express-mcp-v2 Test (optional) |
Successful in 4m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nextjs-16 (vinext) Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-mastra (latest) Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E tanstackstart-react-sourcemaps Test (optional) |
Successful in 25s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-fastify-6 (tracer provider) Test (optional) |
Successful in 10m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-flue Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nextjs-16 (canary, turbopack) Test (optional) |
Successful in 4m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E supabase-nextjs Test (optional) |
Successful in 7m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E tanstackstart-react-cloudflare Test (optional) |
Successful in 2m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nuxt-5-sourcemaps Test (optional) |
Successful in 24s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nuxt-5-sourcemaps (client source maps kept) Test (optional) |
Successful in 6m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-flue (latest) Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E solidstart-2 Test (optional) |
Successful in 51s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-mastra Test (optional) |
Successful in 10m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E vue-3 (canary) Test (optional) |
Successful in 2m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E gen-ai-libraries Test (optional) |
Successful in 4m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nuxt-5-sourcemaps (static / nuxt generate) Test (optional) |
Successful in 2m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nuxt-4 (canary) Test (optional) |
Successful in 10m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-express-send-to-sentry-static Test (optional) |
Successful in 4m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-fastify-6 Test (optional) |
Successful in 23s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E react-send-to-sentry Test (optional) |
Successful in 5m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-openai-send-to-sentry Test (optional) |
Successful in 2m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-pi-durable (latest) Test (optional) |
Successful in 41s |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nuxt-3 (canary) Test (optional) |
Successful in 1m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E node-pi-durable Test (optional) |
Successful in 4m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E nuxt-4-static (canary) Test (optional) |
Successful in 4m |
Details |
| ✅ |
CI: Optional E2E Tests / E2E vue-3 (no Options API) Test (optional) |
Successful in 1m |
Details |
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Just had one question about the base path plugin. Once that's resolved, good to merge! Handling tunnel requests directly via our sentryHandle handler seems fine to me.
I guess a future improvement could be to add an option in our sentrySveltekit plugin that auto-enables the managed tunnel on client and server (somewhat similar to the one-option tunnelRoute approach in NextJS) so that users don't have to configure it in two places. But totally fine with not doing this for the moment. In agentic times we might not even need this.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of concerns worth addressing before landing, but nothing major, imo.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Oct 26, 2026
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cursor Bugbot has reviewed your changes and found 1 potential issue.

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit b468f91. Configure here.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…he app's base path
`sentryHandle` answers tunnel requests before isolation, tracing and routing.
`sentrySvelteKit()` hands `paths.base` to the client and server SDKs, so
`tunnel: true` works under a base path without repeating it.
The tunnel handler now answers a request without one with a 411.
…ests of what the SDK adds
…dules as side-effect free
… `sentryHandle` is created
The server tunnel comes from `serveTunnelIntegration`, so `init` no longer rewrites `tunnel`, and the base path no longer depends on how the SDK was started.
…ne matcher for both plugins
Covers a `hooks.server/index.ts` directory, custom `moduleExtensions` and Vite query ids, and anchors the global values plugin match.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
SvelteKit tunnel adapter
Uh oh!
There was an error while loading. Please reload this page.
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.
|