Skip to content

feat(deno): add firebase integration#22466

Open
isaacs wants to merge 1 commit into
isaacs/deno-orchestrion-integrations-awsfrom
isaacs/deno-orchestrion-integrations-firebase
Open

feat(deno): add firebase integration#22466
isaacs wants to merge 1 commit into
isaacs/deno-orchestrion-integrations-awsfrom
isaacs/deno-orchestrion-integrations-firebase

Conversation

@isaacs

@isaacs isaacs commented Jul 21, 2026

Copy link
Copy Markdown
Member

No description provided.

@isaacs
isaacs requested a review from a team as a code owner July 21, 2026 20:17
@isaacs
isaacs requested review from JPeer264 and andreiborza and removed request for a team July 21, 2026 20:17
@isaacs
isaacs force-pushed the isaacs/deno-orchestrion-integrations-firebase branch from 4a7b537 to 4fa1a42 Compare July 21, 2026 20:55
@isaacs
isaacs requested a review from a team as a code owner July 21, 2026 20:55
@isaacs
isaacs force-pushed the isaacs/deno-orchestrion-integrations-aws branch from 78c6cec to 38210fe Compare July 21, 2026 20:55
@isaacs
isaacs force-pushed the isaacs/deno-orchestrion-integrations-firebase branch from 4fa1a42 to 932c59a Compare July 21, 2026 21:31
@isaacs
isaacs force-pushed the isaacs/deno-orchestrion-integrations-aws branch from 38210fe to 5ef8ac5 Compare July 21, 2026 21:31
@isaacs
isaacs force-pushed the isaacs/deno-orchestrion-integrations-firebase branch from 932c59a to 2c24656 Compare July 21, 2026 21:43
@isaacs
isaacs force-pushed the isaacs/deno-orchestrion-integrations-aws branch from 5ef8ac5 to be31ed1 Compare July 21, 2026 21:43

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 2c24656. Configure here.

@isaacs
isaacs force-pushed the isaacs/deno-orchestrion-integrations-firebase branch from 2c24656 to 1f07c42 Compare July 22, 2026 00:51
@isaacs
isaacs force-pushed the isaacs/deno-orchestrion-integrations-aws branch from be31ed1 to 587cd7b Compare July 22, 2026 00:51
@isaacs
isaacs force-pushed the isaacs/deno-orchestrion-integrations-firebase branch from 1f07c42 to 7afd3e8 Compare July 22, 2026 14:42
@isaacs
isaacs requested review from a team as code owners July 22, 2026 14:42
@isaacs
isaacs requested review from chargome, msonnb and mydea and removed request for a team July 22, 2026 14:42
@isaacs
isaacs force-pushed the isaacs/deno-orchestrion-integrations-aws branch from 587cd7b to 997d812 Compare July 22, 2026 14:42
Comment thread packages/deno/src/sdk.ts
Comment on lines 90 to 96
amqplibChannelIntegration(),
awsChannelIntegration(),
expressChannelIntegration(),
firebaseChannelIntegration(),
genericPoolChannelIntegration(),
hapiChannelIntegration(),
kafkajsChannelIntegration(),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Firebase instrumentation will silently fail in bundler-only environments (e.g., Cloudflare Workers) because firebaseChannelIntegration is missing from CHANNEL_INTEGRATION_DEFINITIONS.
Severity: MEDIUM

Suggested Fix

Add firebaseChannelIntegration to the CHANNEL_INTEGRATION_DEFINITIONS map in config/index.ts. This will allow the bundler's subscribe-injection transform to correctly find and inject the Firebase instrumentation for environments like Cloudflare Workers. Consider adding other missing integrations like awsChannelIntegration and mongodbChannelIntegration as well.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent. Verify if this is a real issue. If it is, propose a fix; if not, explain why it's
not valid.

Location: packages/deno/src/sdk.ts#L90-L96

Potential issue: The `firebaseChannelIntegration` is not included in the
`CHANNEL_INTEGRATION_DEFINITIONS` map, which is used by bundler-only SDKs like
Cloudflare Workers when `injectChannelSubscribers: true` is set. The bundler's injection
transform uses `subscriberExportForModule` to look up integrations in this map. Because
the Firebase integration is missing, the lookup returns `undefined`, and the
instrumentation injection is silently skipped. This results in a lack of Firebase
instrumentation in environments like Cloudflare Workers, without any error or warning.
The same issue exists for other integrations like AWS and MongoDB.

Did we get this right? 👍 / 👎 to inform future reviews.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants