Tracking issue for breaking changes to implement in `@sentry/cloudflare` for v11. ## Documented TODOs in the codebase - [ ] **Replace** `inboundFiltersIntegration` with `eventFiltersIntegration`<br>[https://github.com/getsentry/sentry-javascript/blob/ff11476637576fdc820ba08275d0f36f87384762/packages/cloudflare/src/sdk.ts#L32](<https://github.com/getsentry/sentry-javascript/blob/ff11476637576fdc820ba08275d0f36f87384762/packages/cloudflare/src/sdk.ts#L32>) - [ ] **Move** `include` object into integration based on `sendDefaultPii`<br>[https://github.com/getsentry/sentry-javascript/blob/ff11476637576fdc820ba08275d0f36f87384762/packages/cloudflare/src/sdk.ts#L41](<https://github.com/getsentry/sentry-javascript/blob/ff11476637576fdc820ba08275d0f36f87384762/packages/cloudflare/src/sdk.ts#L41>) - [ ] **Rewrite** `withSentry` generic types for better type safety<br>[https://github.com/getsentry/sentry-javascript/blob/ff11476637576fdc820ba08275d0f36f87384762/packages/cloudflare/src/withSentry.ts#L28](<https://github.com/getsentry/sentry-javascript/blob/ff11476637576fdc820ba08275d0f36f87384762/packages/cloudflare/src/withSentry.ts#L28>) - [ ] **Remove span links workaround in** `wrapMethodWithSentry`<br>[https://github.com/getsentry/sentry-javascript/blob/ff11476637576fdc820ba08275d0f36f87384762/packages/cloudflare/src/wrapMethodWithSentry.ts#L182](<https://github.com/getsentry/sentry-javascript/blob/ff11476637576fdc820ba08275d0f36f87384762/packages/cloudflare/src/wrapMethodWithSentry.ts#L182>) ## Deprecated Options to Remove > **Note:** Check if we shouldn't remove both options based on getsentry/sentry-javascript#20525 - [ ] **Remove** `instrumentPrototypeMethods` option (replaced by `enableRpcTracePropagation`)<br>[https://github.com/getsentry/sentry-javascript/blob/ff11476637576fdc820ba08275d0f36f87384762/packages/cloudflare/src/client.ts#L203](<https://github.com/getsentry/sentry-javascript/blob/ff11476637576fdc820ba08275d0f36f87384762/packages/cloudflare/src/client.ts#L203>)<br>[https://github.com/getsentry/sentry-javascript/blob/ff11476637576fdc820ba08275d0f36f87384762/packages/cloudflare/src/utils/rpcOptions.ts#L6-L34](<https://github.com/getsentry/sentry-javascript/blob/ff11476637576fdc820ba08275d0f36f87384762/packages/cloudflare/src/utils/rpcOptions.ts#L6-L34>) ## Potential Additional Breaking Changes - [ ] **Make D1 instrumentation opt-in** - Tree-shakeable integration to reduce bundle size - [ ] **Consolidate async context strategy initialization** - Currently set in multiple places (`withSentry`, `sentryPagesPlugin`, `instrumentDurableObjectClass`) - [ ] **Remove** `wrapRequestHandler` from public API - Low-level internal API. This is used in couple of projects, maybe we still need this
Tracking issue for breaking changes to implement in
@sentry/cloudflarefor v11.Documented TODOs in the codebase
inboundFiltersIntegrationwitheventFiltersIntegrationsentry-javascript/packages/cloudflare/src/sdk.ts
Line 32 in ff11476
includeobject into integration based onsendDefaultPiisentry-javascript/packages/cloudflare/src/sdk.ts
Line 41 in ff11476
withSentrygeneric types for better type safetysentry-javascript/packages/cloudflare/src/withSentry.ts
Line 28 in ff11476
wrapMethodWithSentrysentry-javascript/packages/cloudflare/src/wrapMethodWithSentry.ts
Line 182 in ff11476
Deprecated Options to Remove
instrumentPrototypeMethodsoption (replaced byenableRpcTracePropagation)sentry-javascript/packages/cloudflare/src/client.ts
Line 203 in ff11476
sentry-javascript/packages/cloudflare/src/utils/rpcOptions.ts
Lines 6 to 34 in ff11476
Potential Additional Breaking Changes
withSentry,sentryPagesPlugin,instrumentDurableObjectClass)wrapRequestHandlerfrom public API - Low-level internal API. This is used in couple of projects, maybe we still need this