René's URL Explorer Experiment


Title: Cloudflare adds back channel integrations the user removed, when the module loads after  `init()` · Issue #25576 · getsentry/sentry-javascript · GitHub

Open Graph Title: Cloudflare adds back channel integrations the user removed, when the module loads after  `init()` · Issue #25576 · getsentry/sentry-javascript

X Title: Cloudflare adds back channel integrations the user removed, when the module loads after  `init()` · Issue #25576 · getsentry/sentry-javascript

Description: The @sentry/cloudflare/vite plugin adds a snippet to each instrumented module (for example openai, pg). When the module first runs, the snippet stores an integration factory on a global marker and emits orchestrion.module-injected. At in...

Open Graph Description: The @sentry/cloudflare/vite plugin adds a snippet to each instrumented module (for example openai, pg). When the module first runs, the snippet stores an integration factory on a global marker and ...

X Description: The @sentry/cloudflare/vite plugin adds a snippet to each instrumented module (for example openai, pg). When the module first runs, the snippet stores an integration factory on a global marker and ...

Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/25576

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Cloudflare adds back channel integrations the user removed, when the module loads after  `init()`","articleBody":"The `@sentry/cloudflare/vite` plugin adds a snippet to each instrumented module (for example `openai`, `pg`). When the module first runs, the snippet stores an integration factory on a global marker and emits `orchestrion.module-injected`. At `init()`, Cloudflare adds every factory already stored to the default integrations.\n\nA module can run after `init()`, for example a driver loaded with a dynamic `import()` on first use. For that case, `packages/cloudflare/src/baseSdk.ts:158` listens for the event and calls`client.addIntegration(factory())`. It does not check the user's options, so it ignores each way a user can opt out:\n\n* `integrations: defaults => defaults.filter(i => i.name !== 'OpenAI')`\n* `defaultIntegrations: false`\n* `defaultIntegrations: [...]`, a custom list without the integration\n\nThe user gets the integration they removed. For the AI integrations, that can mean prompt and response capture that the user turned off on purpose. Whether it happens depends on module load order, so it is hard to see.\n\nA user instance that the user passed in `integrations` is safe: `addIntegration` skips a name that is already installed.\n\n### **Proposed solution**\n\nApply the same rules to a late factory as `init()` applies to the defaults. In `initWithDefaultIntegrations`:\n\n1. Before the SDK fills in `options.defaultIntegrations`, save whether the user set it. If the user set it (`false` or a custom list), the SDK defaults are off, so the handler does not add late integrations.\n2. If `options.integrations` is a function, pass the late integration through it with core's `getIntegrationsToSetup`, as the only default. Install the result entry with the same name, if there is one. If the filter removed it, do nothing. Ignore other entries in the result. Those are already installed from `init()`.\n3. If `options.integrations` is an array, keep today's behavior. An array cannot remove a default, and `addIntegration` already skips a name the user configured.\n\nTrade-off for step 2: the SDK calls the user's `integrations` function again, once for each late module. Most of these functions only filter or add to the list. A function with side effects would run them again. Document this on the `integrations` option for Cloudflare. The other choice is to save, at `init()`, which integration names the filter removed, but that only covers modules that were already loaded, which is the case that works today.\n\nTests in `packages/cloudflare/test/sdk.test.ts` (it already covers the event): each opt-out form above, plus a configured user instance that must stay in place when its module loads later.","author":{"url":"https://github.com/isaacs","@type":"Person","name":"isaacs"},"datePublished":"2026-10-20T17:08:32Z","url":"https://github.com/getsentry/sentry-javascript/issues/25576"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:1cfc7c4b-0bb1-fb45-b8ff-4727352dda08
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9F62:8414A:10004A4:1666EA5:6B0449ED
html-safe-noncee6bc99db11dbd0eafe4d5f752728ebb05911faef1a13c0c5d26c94f4543203d4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjYyOjg0MTRBOjEwMDA0QTQ6MTY2NkVBNTo2QjA0NDlFRCIsInZpc2l0b3JfaWQiOiIxNzY0NzI4NzIyODYwMjk2Njg1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac12c8e8e0f928a36297b2643f5fbeb575db2c46513854339b78ca67714970a299
hovercard-subject-tagissue:5946090288
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/25576/issue_layout
twitter:imagehttps://opengraph.githubassets.com/c0b45269cf7727881b3077c8329791cb454cda771428a9737ec39c91ecf1eac5/getsentry/sentry-javascript/issues/25576
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c0b45269cf7727881b3077c8329791cb454cda771428a9737ec39c91ecf1eac5/getsentry/sentry-javascript/issues/25576
og:image:altThe @sentry/cloudflare/vite plugin adds a snippet to each instrumented module (for example openai, pg). When the module first runs, the snippet stores an integration factory on a global marker and ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameisaacs
hostnamegithub.com
expected-hostnamegithub.com
Noned4495c3631faba668036f176d1f5946901c5172efd73a6edb984029e7d4f8e46
turbo-cache-controlno-preview
go-importgithub.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id3328572
octolytics-dimension-repository_nwogetsentry/sentry-javascript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3328572
octolytics-dimension-repository_network_root_nwogetsentry/sentry-javascript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9ac4337fb7c6a5846cdfdb1a04f154d3c33ebc77
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/issues/25576#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F25576
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F25576
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=getsentry%2Fsentry-javascript
Reloadhttps://github.com/getsentry/sentry-javascript/issues/25576
Reloadhttps://github.com/getsentry/sentry-javascript/issues/25576
Reloadhttps://github.com/getsentry/sentry-javascript/issues/25576
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues340 (340)https://github.com/getsentry/sentry-javascript/issues
Pull requests55 (55)https://github.com/getsentry/sentry-javascript/pulls
Discussionshttps://github.com/getsentry/sentry-javascript/discussions
Actionshttps://github.com/getsentry/sentry-javascript/actions
Security and quality7 (7)https://github.com/getsentry/sentry-javascript/security
Insightshttps://github.com/getsentry/sentry-javascript/insights
https://github.com/getsentry/sentry-javascript
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/25576
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/25576
#25585https://github.com/getsentry/sentry-javascript/pull/25585
Cloudflare adds back channel integrations the user removed, when the module loads after  init()https://github.com/getsentry/sentry-javascript/issues/25576#top
#25585https://github.com/getsentry/sentry-javascript/pull/25585
https://github.com/isaacs
https://github.com/isaacs
isaacshttps://github.com/isaacs
on Oct 20, 2026https://github.com/getsentry/sentry-javascript/issues/25576#issue-5946090288
isaacshttps://github.com/isaacs
on Oct 20, 2026https://github.com/getsentry/sentry-javascript/issues/25576#event-33765777834
https://github.com/apps/linear-code
linear-codehttps://github.com/apps/linear-code
on Oct 20, 2026https://github.com/getsentry/sentry-javascript/issues/25576#issuecomment-6296599098
Linear Codehttps://linear.app
JS-3974https://linear.app/getsentry/issue/JS-3974
isaacshttps://github.com/isaacs
on Oct 20, 2026https://github.com/getsentry/sentry-javascript/issues/25576#event-33765783503
Create "common server options" type to align all runtimes #25538https://github.com/getsentry/sentry-javascript/issues/25538
isaacshttps://github.com/isaacs
on Oct 21, 2026https://github.com/getsentry/sentry-javascript/issues/25576#event-33800787986
fix(cloudflare): Do not add back channel integrations the user removedhttps://github.com/getsentry/sentry-javascript/commit/32cf42b654ff2166e94fac14c9d860ed4b45e71b
https://docs.github.com/articles/closing-issues-via-commit-messages
32cf42bhttps://github.com/getsentry/sentry-javascript/commit/32cf42b654ff2166e94fac14c9d860ed4b45e71b
fix(cloudflare): Do not add back channel integrations the user removedhttps://github.com/getsentry/sentry-javascript/commit/c661f9c93cd31be26d40e4c93d449cadc20f4f98
https://docs.github.com/articles/closing-issues-via-commit-messages
c661f9chttps://github.com/getsentry/sentry-javascript/commit/c661f9c93cd31be26d40e4c93d449cadc20f4f98
fix(cloudflare): Do not add back channel integrations the user removedhttps://github.com/getsentry/sentry-javascript/commit/f9f181bfb6590f7be9a03a9f850f60b2e385d7c2
https://docs.github.com/articles/closing-issues-via-commit-messages
f9f181bhttps://github.com/getsentry/sentry-javascript/commit/f9f181bfb6590f7be9a03a9f850f60b2e385d7c2
fix(cloudflare): Do not add back channel integrations the user removedhttps://github.com/getsentry/sentry-javascript/commit/b7a2eb0c18f5d3fdbd4b4290da430c7d6ebc491e
https://docs.github.com/articles/closing-issues-via-commit-messages
b7a2eb0https://github.com/getsentry/sentry-javascript/commit/b7a2eb0c18f5d3fdbd4b4290da430c7d6ebc491e
fix(cloudflare): Do not add back channel integrations the user removedhttps://github.com/getsentry/sentry-javascript/commit/adf4a7b7ef58ae69224149b5bccf4b5c7d472a03
https://docs.github.com/articles/closing-issues-via-commit-messages
adf4a7bhttps://github.com/getsentry/sentry-javascript/commit/adf4a7b7ef58ae69224149b5bccf4b5c7d472a03
fix(cloudflare): Do not add back channel integrations the user removedhttps://github.com/getsentry/sentry-javascript/commit/e239a55bc9ab6c70ad85c9836549ea3f53a629d9
https://docs.github.com/articles/closing-issues-via-commit-messages
e239a55https://github.com/getsentry/sentry-javascript/commit/e239a55bc9ab6c70ad85c9836549ea3f53a629d9
fix(cloudflare): Do not add back channel integrations the user removedhttps://github.com/getsentry/sentry-javascript/commit/ee5be0593be2303605e6d45be8bac49c522a729d
https://docs.github.com/articles/closing-issues-via-commit-messages
ee5be05https://github.com/getsentry/sentry-javascript/commit/ee5be0593be2303605e6d45be8bac49c522a729d
fix(cloudflare): Do not add back channel integrations the user removedhttps://github.com/getsentry/sentry-javascript/commit/1a01a04a1ad87d5f49739c424e6711ff08bd9653
https://docs.github.com/articles/closing-issues-via-commit-messages
1a01a04https://github.com/getsentry/sentry-javascript/commit/1a01a04a1ad87d5f49739c424e6711ff08bd9653
fix(cloudflare): Do not add back channel integrations the user removedhttps://github.com/getsentry/sentry-javascript/commit/169d47797a5be1a0f61fab81ae1a52e638800e5f
https://docs.github.com/articles/closing-issues-via-commit-messages
169d477https://github.com/getsentry/sentry-javascript/commit/169d47797a5be1a0f61fab81ae1a52e638800e5f
fix(cloudflare): Do not add back channel integrations the user removedhttps://github.com/getsentry/sentry-javascript/commit/1d629f493c15217baf28b1f70239ef8145fb20f5
https://docs.github.com/articles/closing-issues-via-commit-messages
1d629f4https://github.com/getsentry/sentry-javascript/commit/1d629f493c15217baf28b1f70239ef8145fb20f5
fix(cloudflare): Do not add back channel integrations the user removedhttps://github.com/getsentry/sentry-javascript/commit/f12fe117eba634e3069a795f69a4538a35280eb8
https://docs.github.com/articles/closing-issues-via-commit-messages
f12fe11https://github.com/getsentry/sentry-javascript/commit/f12fe117eba634e3069a795f69a4538a35280eb8
fix(cloudflare): Do not add back channel integrations the user removedhttps://github.com/getsentry/sentry-javascript/commit/573435e5cca53a0cb8afa48661f6f601e3a98181
https://docs.github.com/articles/closing-issues-via-commit-messages
573435ehttps://github.com/getsentry/sentry-javascript/commit/573435e5cca53a0cb8afa48661f6f601e3a98181
fix(cloudflare): Do not add back channel integrations the user removedhttps://github.com/getsentry/sentry-javascript/commit/5f347d439a7ff48b652213bb37c7ec8020104fcb
https://docs.github.com/articles/closing-issues-via-commit-messages
5f347d4https://github.com/getsentry/sentry-javascript/commit/5f347d439a7ff48b652213bb37c7ec8020104fcb
isaacshttps://github.com/isaacs
completedhttps://github.com/getsentry/sentry-javascript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#25585https://github.com/getsentry/sentry-javascript/pull/25585
on Oct 26, 2026https://github.com/getsentry/sentry-javascript/issues/25576#event-34314900721
isaacshttps://github.com/isaacs
on Oct 26, 2026https://github.com/getsentry/sentry-javascript/issues/25576#event-34314907607
fix(cloudflare): Do not add back channel integrations the user removed (https://github.com/getsentry/sentry-javascript/commit/908fa35076b13043c58f05d302702101cb5d9650
https://docs.github.com/articles/closing-issues-via-commit-messages
908fa35https://github.com/getsentry/sentry-javascript/commit/908fa35076b13043c58f05d302702101cb5d9650
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Oct 28, 2026https://github.com/getsentry/sentry-javascript/issues/25576#issuecomment-6474399402
GitHub Actionshttps://help.github.com/en/actions
#25585https://github.com/getsentry/sentry-javascript/pull/25585
11.10.0 releasehttps://github.com/getsentry/sentry-javascript/releases/tag/11.10.0
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-javascript/issues/25576
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/25576
isaacshttps://github.com/isaacs
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.