You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Export from @sentry/cloudflare the channel integrations that Node, Bun and Deno export: expressIntegration, hapiIntegration, koaIntegration, nitroIntegration, graphqlIntegration,mysqlIntegration, mysql2Integration, postgresIntegration, postgresJsIntegration, neonIntegration, redisIntegration, mongoIntegration, mongooseIntegration, tediousIntegration, knexIntegration, dataloaderIntegration, genericPoolIntegration,kafkaIntegration, amqplibIntegration, lruMemoizerIntegration, firebaseIntegration, mcpServerIntegration, openAIIntegration, anthropicAIIntegration, googleGenAIIntegration,mistralAIIntegration, groqIntegration, togetherAIIntegration, typesafeIntegration, langChainIntegration, langGraphIntegration, mastraIntegration, piDurableIntegration, SentryMastraExporter. Before the PR, I will check each one for Node-only code that would break on workerd, and leave out any that has it.
How it works with what is there:
A user instance wins over the registered default with the same name. Core's filterDuplicateshandles this at init(). The late orchestrion.module-injected handler in baseSdk.ts:158calls addIntegration, which skips a name that is already installed. So a configured instance is not replaced when its module loads later.
Bundle size: both packages set "sideEffects": false, so a bundle includes only the integrations the user imports.
The trap: these integrations only get data when the @sentry/cloudflare/vite plugin injected the channels. Without the plugin, a configured integration does nothing, with no message. Fix: atinit(), if the user passed a channel integration and GLOBAL_OBJ.__SENTRY_ORCHESTRION__?.bundleris undefined (the plugin did not run), print a debug warning that names the integration and the plugin. A per-module check does not work, because a module can load after init(). Add a doc note too.
Activity
linear-code commentedon Oct 20, 2026
JS-3973