Title: Cloudflare Agent RPC proxy breaks native private fields · Issue #23040 · getsentry/sentry-javascript · GitHub
Open Graph Title: Cloudflare Agent RPC proxy breaks native private fields · Issue #23040 · getsentry/sentry-javascript
X Title: Cloudflare Agent RPC proxy breaks native private fields · Issue #23040 · getsentry/sentry-javascript
Description: SDK @sentry/cloudflare 10.69.0 with Cloudflare Agents 0.20.1. Reproduction Wrap a supervisor Agent with instrumentAgentWithSentry and set enableRpcTracePropagation: true. Address either a top-level Agent with getAgentByName() or a child ...
Open Graph Description: SDK @sentry/cloudflare 10.69.0 with Cloudflare Agents 0.20.1. Reproduction Wrap a supervisor Agent with instrumentAgentWithSentry and set enableRpcTracePropagation: true. Address either a top-level...
X Description: SDK @sentry/cloudflare 10.69.0 with Cloudflare Agents 0.20.1. Reproduction Wrap a supervisor Agent with instrumentAgentWithSentry and set enableRpcTracePropagation: true. Address either a top-level...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/23040
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Cloudflare Agent RPC proxy breaks native private fields","articleBody":"### SDK\n\n`@sentry/cloudflare` 10.69.0 with Cloudflare Agents 0.20.1.\n\n### Reproduction\n\n1. Wrap a supervisor `Agent` with `instrumentAgentWithSentry` and set `enableRpcTracePropagation: true`.\n2. Address either a top-level Agent with `getAgentByName()` or a child with native Durable Object facets (`ctx.facets.get()`), as Agents SDK `subAgent()` does.\n3. Let the Agents SDK bootstrap the instance through native Durable Object RPC (`setName()`).\n\nFacets and direct RPC on their Durable Object-style stubs are documented Cloudflare runtime behavior: https://developers.cloudflare.com/dynamic-workers/usage/durable-object-facets/\n\n### Expected\n\nNative Agent/facet/DO RPC invokes the method with the underlying Durable Object instance as its receiver.\n\n### Actual\n\nSentry returns a proxy from `finalizeWithRpcInstrumentation`, and native RPC invokes the prototype method with that proxy as `this`. Any native private field access then fails. PartyServer's `setName()` exposes this concretely through its `#_name` field:\n\n```text\nTypeError: Cannot read private member #_name from an object whose class did not declare it\n```\n\nSetting `enableRpcTracePropagation: false` avoids the error.\n","author":{"url":"https://github.com/sergical","@type":"Person","name":"sergical"},"datePublished":"2026-08-05T04:36:32Z","url":"https://github.com/getsentry/sentry-javascript/issues/23040"}
| 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:297cbd97-55f0-ea50-2339-036cd8160adf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 91B0:3A6B0F:8F585B:CAB09E:6B042D4E |
| html-safe-nonce | 345dfe660ae9a104183764e5c90bff2fb9e6dcad1d4a020a044ba83c974cc100 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MUIwOjNBNkIwRjo4RjU4NUI6Q0FCMDlFOjZCMDQyRDRFIiwidmlzaXRvcl9pZCI6IjE3NDM3NzYwNTU2MTkyMzUxNTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a718f6379a99dff36a3c06222f4efaba93f565f8737974ec4ba1b23e9057983a |
| hovercard-subject-tag | issue:5067345516 |
| 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/23040/issue_layout |
| twitter:image | https://opengraph.githubassets.com/387d097c1c036bf000b9c2e40d32241351baeef28bb09fe369b747cc81c12901/getsentry/sentry-javascript/issues/23040 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/387d097c1c036bf000b9c2e40d32241351baeef28bb09fe369b747cc81c12901/getsentry/sentry-javascript/issues/23040 |
| og:image:alt | SDK @sentry/cloudflare 10.69.0 with Cloudflare Agents 0.20.1. Reproduction Wrap a supervisor Agent with instrumentAgentWithSentry and set enableRpcTracePropagation: true. Address either a top-level... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sergical |
| hostname | github.com |
| expected-hostname | github.com |
| None | b7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e |
| 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 | c3dd496c3da6ea6b77e69c09279d2b81604654f1 |
| 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