Title: [cloudflare] Auto-instrument warns on the TanStack Start tunnel shim of the worker entry · Issue #26204 · getsentry/sentry-javascript · GitHub
Open Graph Title: [cloudflare] Auto-instrument warns on the TanStack Start tunnel shim of the worker entry · Issue #26204 · getsentry/sentry-javascript
X Title: [cloudflare] Auto-instrument warns on the TanStack Start tunnel shim of the worker entry · Issue #26204 · getsentry/sentry-javascript
Description: Packages and versions @sentry/cloudflare 11.11.0 (sentryCloudflareVitePlugin) @sentry/tanstackstart-react 11.11.0 (sentryTanstackStart with the managed tunnel) Vite 8.3.6, @cloudflare/vite-plugin, TanStack Start What happens In a product...
Open Graph Description: Packages and versions @sentry/cloudflare 11.11.0 (sentryCloudflareVitePlugin) @sentry/tanstackstart-react 11.11.0 (sentryTanstackStart with the managed tunnel) Vite 8.3.6, @cloudflare/vite-plugin, ...
X Description: Packages and versions @sentry/cloudflare 11.11.0 (sentryCloudflareVitePlugin) @sentry/tanstackstart-react 11.11.0 (sentryTanstackStart with the managed tunnel) Vite 8.3.6, @cloudflare/vite-plugin, ...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/26204
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[cloudflare] Auto-instrument warns on the TanStack Start tunnel shim of the worker entry","articleBody":"### Packages and versions\n\n- `@sentry/cloudflare` 11.11.0 (`sentryCloudflareVitePlugin`)\n- `@sentry/tanstackstart-react` 11.11.0 (`sentryTanstackStart` with the managed tunnel)\n- Vite 8.3.6, `@cloudflare/vite-plugin`, TanStack Start\n\n### What happens\n\nIn a production build, the Cloudflare auto-instrument plugin warns for every Durable Object and Workflow:\n\n```\n[plugin sentry-cloudflare-auto-instrument] [sentry] Could not auto-instrument AuthSecondaryStorage, CallChargingDO, VoiceAgentSessionDO, PricingActivationWorkflow, RateImportWorkflow.The worker entry has no export matching them. Star re-exports (`export * from \"./do\"`) are not matched. Export them by name or wrap them manually with corresponding `instrument*WithSentry` helpers.\n```\n\nThe worker entry (`wrangler.jsonc` `main: \"./src/server.ts\"`) exports each class by name, for example `export { CallChargingDO } from \"./server/entrypoints/durable-objects/call-charging.do.ts\";`. The classes are wrapped. The warning is a false positive.\n\n### Cause\n\n1. `makeServerEntryTunnelPlugin` (`tanstackstart-react/build/esm/vite/tunnelRoute.js`) loads a shim for the server entry id. The shim is `import entry from \"\u003cid>?sentry-tunnel-original\"; export * from \"\u003cid>?sentry-tunnel-original\"; export default wrap...(entry)`.\n2. `sentryCloudflareAutoInstrumentPlugin.transform` (`cloudflare/build/esm/prod/vite/autoInstrument.js`) strips `?…` from the module id before it compares it with the wrangler `main` path. So it transforms both the shim and `src/server.ts?sentry-tunnel-original`.\n3. The real entry gets its classes wrapped. The shim has only `export *`, so the plugin finds no named class exports and prints the warning.\n\nWithout the tunnel plugin (no `SENTRY_AUTH_TOKEN` in our setup, so `sentryTanstackStart` is not added), the warning does not appear.\n\n### Expected\n\nNo warning when the classes are exported by name from the real entry. For example, skip modules whose only exports are `export *` from the same entry path with a query, or warn only after every module that matches the entry path has been transformed.\n\n### Workaround\n\nNone needed at runtime; the warning can be ignored.","author":{"url":"https://github.com/alexander-zuev","@type":"Person","name":"alexander-zuev"},"datePublished":"2026-11-08T17:28:20Z","url":"https://github.com/getsentry/sentry-javascript/issues/26204"}
| 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:89d23537-a944-c4ee-38e3-b53c294e4ac4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B132:1F2F:9D1BF5:D4F80E:6B0448E6 |
| html-safe-nonce | 2aa5c838c6c8b13d4e11f830d342a7fbbb6dbb05a48a5a64c7e6226085df29c6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTMyOjFGMkY6OUQxQkY1OkQ0RjgwRTo2QjA0NDhFNiIsInZpc2l0b3JfaWQiOiIxOTc3NDE2NDIyNDgxMjE3NzY2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | fc7a66634148247216a75abef113e4e164e78b3e9a5177bbf4041bb9734d106e |
| hovercard-subject-tag | issue:6273595519 |
| 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/26204/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fd938796998f7a86463bd9c7a9bd92ed976b531ab568ed2c2c081945b27b27e6/getsentry/sentry-javascript/issues/26204 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fd938796998f7a86463bd9c7a9bd92ed976b531ab568ed2c2c081945b27b27e6/getsentry/sentry-javascript/issues/26204 |
| og:image:alt | Packages and versions @sentry/cloudflare 11.11.0 (sentryCloudflareVitePlugin) @sentry/tanstackstart-react 11.11.0 (sentryTanstackStart with the managed tunnel) Vite 8.3.6, @cloudflare/vite-plugin, ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | alexander-zuev |
| 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