Title: TanStack Start + Vercel: No server-side errors/logs/traces with @sentry/tanstackstart-react (alpha) · Issue #19458 · getsentry/sentry-javascript · GitHub
Open Graph Title: TanStack Start + Vercel: No server-side errors/logs/traces with @sentry/tanstackstart-react (alpha) · Issue #19458 · getsentry/sentry-javascript
X Title: TanStack Start + Vercel: No server-side errors/logs/traces with @sentry/tanstackstart-react (alpha) · Issue #19458 · getsentry/sentry-javascript
Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using the latest SDK release https://github.com/...
Open Graph Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
X Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/19458
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"TanStack Start + Vercel: No server-side errors/logs/traces with @sentry/tanstackstart-react (alpha)","articleBody":"### Is there an existing issue for this?\n\n- [x] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\n- [x] I have reviewed the documentation https://docs.sentry.io/\n- [x] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\n\n### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Which SDK are you using?\n\n@sentry/tanstackstart-react\n\n### SDK Version\n\n/\n\n### Framework Version\n\n_No response_\n\n### Link to Sentry event\n\n_No response_\n\n### Reproduction Example/SDK Setup\n\ninstrument.server.mjs\n```\n\nimport * as Sentry from '@sentry/tanstackstart-react'\nimport { pinoIntegration } from '@sentry/node'\n\nconst sentryDsn = process.env.VITE_SENTRY_DSN\nconst appEnv = process.env.VITE_APP_ENV\nconst isDevelopment = process.env.NODE_ENV === 'development'\n\ntry {\n\n if (!sentryDsn) {\n console.warn('VITE_SENTRY_DSN is not defined. Sentry is not running.')\n } else {\n // Build integrations list - exclude profiling in development\n const integrations = [\n // Capture pino logs as Sentry breadcrumbs and send errors to Sentry\n // https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/pino/\n pinoIntegration(),\n ]\n \n // Only load profiling in non-development environments\n if (!isDevelopment) {\n const { nodeProfilingIntegration } = await import('@sentry/profiling-node')\n integrations.push(nodeProfilingIntegration())\n }\n \n Sentry.init({\n dsn: sentryDsn,\n // Adds request headers and IP for users, for more info visit:\n // https://docs.sentry.io/platforms/javascript/guides/tanstackstart-react/configuration/options/#sendDefaultPii\n sendDefaultPii: false,\n tracesSampleRate: 1.0,\n // Set sampling rate for profiling - this is relative to tracesSampleRate\n profilesSampleRate: isDevelopment ? 0 : 1.0,\n profileLifecycle: 'trace',\n replaysSessionSampleRate: 1.0,\n replaysOnErrorSampleRate: 1.0,\n enabled: !isDevelopment,\n environment: appEnv,\n integrations,\n enableLogs: true,\n })\n }\n}\ncatch (error) {\n console.error('Error initializing Sentry', error)\n}\n```\n\npackage.json\n```\n{\n \"name\": \"web-app\",\n \"private\": true,\n \"type\": \"module\",\n \"scripts\": {\n \"dev\": \"dotenv -e .env.local -- sh -c \\\"NODE_OPTIONS='--import ./instrument.server.mjs' vite dev --port 3001\\\"\",\n \"build\": \"vite build && cp instrument.server.mjs .vercel/server\",\n \"build:local\": \"vite build && cp instrument.server.mjs .output/server\",\n \"preview\": \"vite preview\",\n \"test\": \"bun test\",\n \"seed\": \"./scripts/seed.sh\",\n \"seed:stripe\": \"./scripts/seed-stripe.sh\",\n \"test:coverage\": \"bun test --coverage\",\n \"format\": \"biome format --fix\",\n \"lint\": \"biome lint\",\n \"check\": \"biome check\",\n \"start\": \"node --import ./.vercel/server/instrument.server.mjs .vercel/server/index.mjs\",\n \"get-env\": \"npx vercel env pull -y --environment=${VERCEL_ENV:-development} .env.${VERCEL_ENV:-development}.local\"\n },\n \"dependencies\": {\n \"@fontsource-variable/archivo\": \"catalog:ui\",\n \"@sentry/profiling-node\": \"catalog:devtools\",\n \"@sentry/tanstackstart-react\": \"catalog:devtools\",\n \"@tanstack/react-devtools\": \"catalog:tanstack\",\n \"@tanstack/react-query\": \"catalog:tanstack\",\n \"@tanstack/react-query-devtools\": \"catalog:tanstack\",\n \"@tanstack/react-router\": \"catalog:tanstack\",\n \"@tanstack/react-router-devtools\": \"catalog:tanstack\",\n \"@tanstack/react-router-ssr-query\": \"catalog:tanstack\",\n \"@tanstack/react-start\": \"catalog:tanstack\",\n \"@tanstack/router-plugin\": \"catalog:tanstack\",\n \"@tailwindcss/vite\": \"catalog:ui\",\n \"@vercel/analytics\": \"catalog:analytics\",\n \"@workspace/auth\": \"*\",\n \"@workspace/billing\": \"*\",\n \"@workspace/database\": \"*\",\n \"@workspace/emails\": \"*\",\n \"@workspace/logger\": \"*\",\n \"@workspace/seo\": \"*\",\n \"@workspace/slack\": \"*\",\n \"@workspace/ui\": \"*\",\n \"date-fns\": \"catalog:date\",\n \"date-fns-tz\": \"catalog:date\",\n \"dotenv-cli\": \"^11.0.0\",\n \"hono\":\"catalog:devtools\",\n \"lucide-react\": \"catalog:ui\",\n \"nitro\": \"catalog:build\",\n \"posthog-js\": \"catalog:analytics\",\n \"react\": \"catalog:ui\",\n \"react-dom\": \"catalog:ui\",\n \"vite-tsconfig-paths\": \"catalog:build\"\n },\n \"devDependencies\": {\n \"@workspace/test-utils\": \"*\",\n \"dotenv\": \"catalog:devtools\",\n \"@biomejs/biome\": \"catalog:devtools\",\n \"@tanstack/devtools-vite\": \"catalog:tanstack\",\n \"@testing-library/dom\": \"catalog:testing\",\n \"@testing-library/react\": \"catalog:testing\",\n \"@types/node\": \"catalog:types\",\n \"@types/react\": \"catalog:types\",\n \"@types/react-dom\": \"catalog:types\",\n \"@vitejs/plugin-react\": \"catalog:build\",\n \"babel-plugin-react-compiler\": \"catalog:build\",\n \"jsdom\": \"catalog:testing\",\n \"typescript\": \"catalog:types\",\n \"vite\": \"catalog:build\",\n \"vitest\": \"catalog:build\",\n \"web-vitals\": \"catalog:testing\"\n }\n}\n```\n\n### Steps to Reproduce\n\nUser's question:\n\n> I’m using TanStack Start with Sentry via `@sentry/tanstackstart-react` and seeing correct behavior locally, but when deploying to Vercel I don’t get any **server-side** issues, logs, or traces in Sentry. Client-side reporting works as expected.\n> \n> I’ve followed the TanStack Start + Sentry docs, including the server instrumentation setup. [[[TanStack Start guide](https://docs.sentry.io/platforms/javascript/guides/tanstackstart-react/#configure-server-side-sentry)](https://docs.sentry.io/platforms/javascript/guides/tanstackstart-react/#configure-server-side-sentry)]\n> \n\n\n### Steps to Reproduce\n\n1. Create a new TanStack Start project.\n2. Install and configure `@sentry/tanstackstart-react` as above \n3. Deploy the app to Vercel using the standard TanStack Start Vercel deployment flow.\n4. Trigger an error \n5. Check Sentry for:\n - error events\n - logs\n - traces\n\n### Expected Result\n\n\n- Server-side errors, logs, and traces appear in Sentry for the Vercel deployment, similar to local behavior.\n- Manual calls like `Sentry.captureException` and `Sentry.captureMessage` from server code should reliably show up in Sentry when deployed to Vercel.\n\n\n\n### Actual Result\n\n- Locally:\n - Server-side Sentry behavior works as expected.\n- On Vercel:\n - No server-side issues/logs/traces appear in Sentry.\n - Client-side events still work.\n\n\n### Additional Context\n\n_No response_\n\n### Priority\n\n\u003csub>React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding `+1` or `me too`, to help us triage it.\u003c/sub>","author":{"url":"https://github.com/masinette","@type":"Person","name":"masinette"},"datePublished":"2026-02-20T20:44:35Z","url":"https://github.com/getsentry/sentry-javascript/issues/19458"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:eb9d0326-5d94-4be2-7193-e6e975dd2a08 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BBC4:3AA6A6:104570:163B45:6B044845 |
| html-safe-nonce | bc5b8bc293ce70ac1d80944fc5533f8181052d62e523f3359e024b8cb8904eb8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQkM0OjNBQTZBNjoxMDQ1NzA6MTYzQjQ1OjZCMDQ0ODQ1IiwidmlzaXRvcl9pZCI6Ijc1NjkxMzE4MjM3MjEzNjc2MjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4c7a4f832a98180997b28af20f8bae7daa0b3beb56a8b859156e114f2b1dfdd7 |
| hovercard-subject-tag | issue:3970306934 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/19458/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a5c67e63ea43283400fcd6eb2991d3b7d8c3e9c487ead2fcc92de513a494d199/getsentry/sentry-javascript/issues/19458 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a5c67e63ea43283400fcd6eb2991d3b7d8c3e9c487ead2fcc92de513a494d199/getsentry/sentry-javascript/issues/19458 |
| og:image:alt | Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | masinette |
| hostname | github.com |
| expected-hostname | github.com |
| None | d4495c3631faba668036f176d1f5946901c5172efd73a6edb984029e7d4f8e46 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9ac4337fb7c6a5846cdfdb1a04f154d3c33ebc77 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width