feat(deno): add firebase integration#22466
Conversation
4a7b537 to
4fa1a42
Compare
78c6cec to
38210fe
Compare
4fa1a42 to
932c59a
Compare
38210fe to
5ef8ac5
Compare
932c59a to
2c24656
Compare
5ef8ac5 to
be31ed1
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ 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.
2c24656 to
1f07c42
Compare
be31ed1 to
587cd7b
Compare
1f07c42 to
7afd3e8
Compare
587cd7b to
997d812
Compare
| amqplibChannelIntegration(), | ||
| awsChannelIntegration(), | ||
| expressChannelIntegration(), | ||
| firebaseChannelIntegration(), | ||
| genericPoolChannelIntegration(), | ||
| hapiChannelIntegration(), | ||
| kafkajsChannelIntegration(), |
There was a problem hiding this comment.
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.

No description provided.