René's URL Explorer Experiment


Title: Sentry Serverless types do not work with Firebase background functions · Issue #3269 · getsentry/sentry-javascript · GitHub

Open Graph Title: Sentry Serverless types do not work with Firebase background functions · Issue #3269 · getsentry/sentry-javascript

X Title: Sentry Serverless types do not work with Firebase background functions · Issue #3269 · getsentry/sentry-javascript

Description: Package + Version @sentry/serverless 6.2.0 Description Firebase offers a few extra types of cloud functions that do not implement the same interface as the existing GCPFunction options. It seems like these work as expected but the typing...

Open Graph Description: Package + Version @sentry/serverless 6.2.0 Description Firebase offers a few extra types of cloud functions that do not implement the same interface as the existing GCPFunction options. It seems li...

X Description: Package + Version @sentry/serverless 6.2.0 Description Firebase offers a few extra types of cloud functions that do not implement the same interface as the existing GCPFunction options. It seems li...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Sentry Serverless types do not work with Firebase background functions","articleBody":"## Package + Version\r\n\r\n`@sentry/serverless`\r\n\r\n`6.2.0`\r\n\r\n## Description\r\n\r\nFirebase offers a few extra types of cloud functions that do not implement the same interface as the existing GCPFunction options. It seems like these work as expected but the typings do not allow a typescript project to compile. \r\n\r\nPrimarily the ones I am most interested today are the [Cloud Firestore triggers](https://firebase.google.com/docs/functions/firestore-events) and [Authentication triggers](https://firebase.google.com/docs/functions/auth-events). The remaining can be found in the docs: https://firebase.google.com/docs/functions/firestore-event\r\n\r\nHere are some examples:\r\n\r\n```typescript\r\nconst thingCreateHandler = (snap, context) => {}\r\n\r\nexport const thingCreated = functions.firestore\r\n  .document('things/{id}')\r\n  .onCreate(Sentry.GCPFunction.wrapEventFunction(thingCreateHandler))\r\n```\r\n\r\n> Argument of type 'EventFunctionWithCallback' is not assignable to parameter of type '(snapshot: QueryDocumentSnapshot, context: EventContext) => any'.ts(2345)\r\n\r\n```typescript\r\nconst userCreateHandler = (user, context) => {}\r\n\r\nexport const userCreate = functions.auth.user().onCreate(\r\n  Sentry.GCPFunction.wrapEventFunction(userCreateHandler)\r\n);\r\n```\r\n\r\n> Argument of type 'EventFunctionWithCallback' is not assignable to parameter of type '(user: UserRecord, context: EventContext) => any'.ts(2345)\r\n\r\n\r\n\r\nThis is what the interface looks like:\r\n\r\n- Cloud Firestore Triggers: \r\n```typescript\r\n    /** Respond to all document writes (creates, updates, or deletes). */\r\n    onWrite(handler: (change: Change\u003cDocumentSnapshot>, context: EventContext) => PromiseLike\u003cany> | any): CloudFunction\u003cChange\u003cDocumentSnapshot>>;\r\n    /** Respond only to document updates. */\r\n    onUpdate(handler: (change: Change\u003cQueryDocumentSnapshot>, context: EventContext) => PromiseLike\u003cany> | any): CloudFunction\u003cChange\u003cQueryDocumentSnapshot>>;\r\n    /** Respond only to document creations. */\r\n    onCreate(handler: (snapshot: QueryDocumentSnapshot, context: EventContext) => PromiseLike\u003cany> | any): CloudFunction\u003cQueryDocumentSnapshot>;\r\n    /** Respond only to document deletions. */\r\n    onDelete(handler: (snapshot: QueryDocumentSnapshot, context: EventContext) => PromiseLike\u003cany> | any): CloudFunction\u003cQueryDocumentSnapshot>;\r\n```\r\n\r\n- Authentication Triggers:\r\n\r\n```typescript\r\n    /** Respond to the creation of a Firebase Auth user. */\r\n    onCreate(handler: (user: UserRecord, context: EventContext) => PromiseLike\u003cany> | any): CloudFunction\u003cUserRecord>;\r\n    /** Respond to the deletion of a Firebase Auth user. */\r\n    onDelete(handler: (user: UserRecord, context: EventContext) => PromiseLike\u003cany> | any): CloudFunction\u003cUserRecord>;\r\n```\r\n","author":{"url":"https://github.com/jsakas","@type":"Person","name":"jsakas"},"datePublished":"2021-02-18T22:39:57Z","url":"https://github.com/getsentry/sentry-javascript/issues/3269"}

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:2668dc33-1145-0184-8a7e-35e4853a18ba
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB96E:27570E:42A669:5B442B:6B04BF35
html-safe-nonce90e5eba7d1ba46e9e27ba82d9c18f4cb96f78bfac3fc88652d79c3a746788f49
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTZFOjI3NTcwRTo0MkE2Njk6NUI0NDJCOjZCMDRCRjM1IiwidmlzaXRvcl9pZCI6IjUxOTEwMTk4NTY1MzkyMDU0MjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaca84bd6da62672d3648612df8e4495810cc24e1656622279b4f52c5fa7d11c1b8
hovercard-subject-tagissue:811528324
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/3269/issue_layout
twitter:imagehttps://opengraph.githubassets.com/3c6f75f8b6d41836bd42be5d6ddc2e6976570ad0bf8b87506cba75691d37c2cb/getsentry/sentry-javascript/issues/3269
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3c6f75f8b6d41836bd42be5d6ddc2e6976570ad0bf8b87506cba75691d37c2cb/getsentry/sentry-javascript/issues/3269
og:image:altPackage + Version @sentry/serverless 6.2.0 Description Firebase offers a few extra types of cloud functions that do not implement the same interface as the existing GCPFunction options. It seems li...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejsakas
hostnamegithub.com
expected-hostnamegithub.com
None85dd75377eb77313206b8fc108bcee6a3a029286d94bf32bf9b4426e4d92e0c4
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
release0d64fa748a2bab9a5b587a967ac4da1cfa8da6dd
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/issues/3269#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F3269
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%2F3269
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/3269
Reloadhttps://github.com/getsentry/sentry-javascript/issues/3269
Reloadhttps://github.com/getsentry/sentry-javascript/issues/3269
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues333 (333)https://github.com/getsentry/sentry-javascript/issues
Pull requests50 (50)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/3269
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/3269
Sentry Serverless types do not work with Firebase background functionshttps://github.com/getsentry/sentry-javascript/issues/3269#top
https://github.com/JPeer264
Feature: Serverlesshttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Feature%3A%20Serverless%22
Improvementhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Improvement%22
Meta: Help Wantedhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Meta%3A%20Help%20Wanted%22
https://github.com/jsakas
jsakashttps://github.com/jsakas
on Feb 18, 2021https://github.com/getsentry/sentry-javascript/issues/3269#issue-811528324
Cloud Firestore triggershttps://firebase.google.com/docs/functions/firestore-events
Authentication triggershttps://firebase.google.com/docs/functions/auth-events
https://firebase.google.com/docs/functions/firestore-eventhttps://firebase.google.com/docs/functions/firestore-event
Nexthttps://github.com/getsentry/sentry-javascript/issues/3269?timeline_page=1
jsakashttps://github.com/jsakas
Status: Needs Triagehttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20Needs%20Triage%22
on Feb 18, 2021https://github.com/getsentry/sentry-javascript/issues/3269#event-4349295017
https://github.com/jsakas
jsakashttps://github.com/jsakas
on Feb 21, 2021https://github.com/getsentry/sentry-javascript/issues/3269#issuecomment-782783543
https://github.com/zanona
zanonahttps://github.com/zanona
on Feb 22, 2021https://github.com/getsentry/sentry-javascript/issues/3269#issuecomment-783298414
https://gist.github.com/zanona/0f3d42093eaa8ac5c33286cc7eca1166https://gist.github.com/zanona/0f3d42093eaa8ac5c33286cc7eca1166
AbhiPrasadhttps://github.com/AbhiPrasad
Feature: Serverlesshttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Feature%3A%20Serverless%22
Meta: Help Wantedhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Meta%3A%20Help%20Wanted%22
Type: Featurehttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Type%3A%20Feature%22
on Jul 15, 2021https://github.com/getsentry/sentry-javascript/issues/3269#event-5026284371
getsantryhttps://github.com/apps/getsantry
Status: Untriagedhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20Untriaged%22
on Jul 15, 2021https://github.com/getsentry/sentry-javascript/issues/3269#event-5026284456
https://github.com/AbhiPrasad
AbhiPrasadhttps://github.com/AbhiPrasad
on Jul 15, 2021https://github.com/getsentry/sentry-javascript/issues/3269#issuecomment-880808464
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Oct 14, 2021https://github.com/getsentry/sentry-javascript/issues/3269#issuecomment-943295548
github-actionshttps://github.com/apps/github-actions
Status: Stalehttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20Stale%22
on Oct 14, 2021https://github.com/getsentry/sentry-javascript/issues/3269#event-5463371208
AbhiPrasadhttps://github.com/AbhiPrasad
Status: Backloghttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20Backlog%22
Status: Stalehttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20Stale%22
on Oct 14, 2021https://github.com/getsentry/sentry-javascript/issues/3269#event-5463410564
https://github.com/teebu
teebuhttps://github.com/teebu
on Mar 10, 2022https://github.com/getsentry/sentry-javascript/issues/3269#issuecomment-1063613124
https://github.com/beardsleym
beardsleymhttps://github.com/beardsleym
on Mar 18, 2022https://github.com/getsentry/sentry-javascript/issues/3269#issuecomment-1072475677
https://github.com/abierbaum
abierbaumhttps://github.com/abierbaum
on Apr 13, 2022https://github.com/getsentry/sentry-javascript/issues/3269#issuecomment-1098469960
@zanonahttps://github.com/zanona
@AbhiPrasadhttps://github.com/AbhiPrasad
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 2https://github.com/orgs/getsentry/projects/190
on Apr 23, 2024https://github.com/getsentry/sentry-javascript/issues/3269
AbhiPrasadhttps://github.com/AbhiPrasad
Platform: Google Cloud Functionshttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Platform%3A%20Google%20Cloud%20Functions%22
Type: Featurehttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Type%3A%20Feature%22
on Apr 24, 2024https://github.com/getsentry/sentry-javascript/issues/3269#event-12594025066
AbhiPrasadhttps://github.com/AbhiPrasad
Platform: Google Cloud Functionshttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Platform%3A%20Google%20Cloud%20Functions%22
on Jun 13, 2024https://github.com/getsentry/sentry-javascript/issues/3269#event-13150765110
getsentry/sentry-javascripthttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22getsentry%2Fsentry-javascript%22
on Apr 7, 2025https://github.com/getsentry/sentry-javascript/issues/3269#event-17159580830
linearhttps://github.com/apps/linear
Improvementhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Improvement%22
SDKs (New)https://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22SDKs%20(New)%22
on Apr 7, 2025https://github.com/getsentry/sentry-javascript/issues/3269#event-17159618426
stephanie-andersonhttps://github.com/stephanie-anderson
Firebasehttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Firebase%22
SDKs (New)https://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22SDKs%20(New)%22
getsentry/sentry-javascripthttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22getsentry%2Fsentry-javascript%22
Firebasehttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Firebase%22
on Apr 8, 2025https://github.com/getsentry/sentry-javascript/issues/3269#event-17167322714
stephanie-andersonhttps://github.com/stephanie-anderson
Improvementhttps://github.com/getsentry/sentry-javascript/issues?q=type:"Improvement"
on Aug 12, 2025https://github.com/getsentry/sentry-javascript/issues/3269#event-19106518311
JPeer264https://github.com/JPeer264
on Jan 22, 2026https://github.com/getsentry/sentry-javascript/issues/3269#event-22217850753
https://github.com/JPeer264
JPeer264https://github.com/JPeer264
on Jan 22, 2026https://github.com/getsentry/sentry-javascript/issues/3269#issuecomment-3785202794
feat(firebase): Instrument cloud functions for firebase v2 #17952https://github.com/getsentry/sentry-javascript/pull/17952
feat(node): Add firebase integration #16719https://github.com/getsentry/sentry-javascript/pull/16719
firebaseIntegrationhttps://docs.sentry.io/platforms/javascript/guides/gcp-functions/configuration/integrations/firebase/
an open PRhttps://github.com/getsentry/sentry-docs/pull/16119
JPeer264https://github.com/JPeer264
completedhttps://github.com/getsentry/sentry-javascript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jan 22, 2026https://github.com/getsentry/sentry-javascript/issues/3269#event-22219997224
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-javascript/issues/3269
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/3269
JPeer264https://github.com/JPeer264
Feature: Serverlesshttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Feature%3A%20Serverless%22
Improvementhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Improvement%22
Meta: Help Wantedhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Meta%3A%20Help%20Wanted%22
GitHub Issues with 👀 2https://github.com/orgs/getsentry/projects/190
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.