File tree Expand file tree Collapse file tree 6 files changed +39
-4
lines changed
docs/platforms/javascript
common/configuration/integrations
platform-includes/configuration/integrations Expand file tree Collapse file tree 6 files changed +39
-4
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ title : Firebase
3+ description : " Adds instrumentation for Firebase. (default)"
4+ supported :
5+ - javascript.node
6+ - javascript.gcp-functions
7+ - javascript.astro
8+ - javascript.bun
9+ ---
10+
11+ _ Import name: ` Sentry.firebaseIntegration ` _
12+
13+ This integration is enabled by default. If you want to disable it, you can [ modify your default integrations] ( ./../#modifying-default-integrations ) .
14+
15+ Adds instrumentation for [ Firestore] ( https://firebase.google.com/docs/firestore ) and [ Cloud Functions for Firebase] ( https://firebase.google.com/docs/functions ) .
16+
17+ ``` JavaScript
18+ Sentry .init ({
19+ integrations: [Sentry .firebaseIntegration ()],
20+ });
21+ ```
22+
23+ ## Supported Versions
24+
25+ - ` firebase-functions ` : ` >=6.0.0 <7 `
26+ - ` @firebase/firestore ` : ` >=3.0.0 <5 `
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ const Sentry = require("@sentry/google-cloud-serverless");
4040
4141Sentry .init ({
4242 dsn: " ___PUBLIC_DSN___" ,
43-
43+
4444 // Adds request headers and IP for users, for more info visit:
4545 // https://docs.sentry.io/platforms/javascript/guides/gcp-functions/configuration/options/#sendDefaultPii
4646 sendDefaultPii: true ,
@@ -53,6 +53,11 @@ Sentry.init({
5353 // https://docs.sentry.io/platforms/javascript/configuration/options/#traces-sample-rate
5454 tracesSampleRate: 1.0 ,
5555 // ___PRODUCT_OPTION_END___ performance
56+ // ___PRODUCT_OPTION_START___ logs
57+
58+ // Enable logs to be sent to Sentry
59+ enableLogs: true ,
60+ // ___PRODUCT_OPTION_END___ logs
5661});
5762
5863exports .helloHttp = Sentry .wrapHttpFunction ((req , res ) => {
@@ -94,9 +99,9 @@ exports.helloEvents = Sentry.wrapCloudEventFunction(
9499);
95100```
96101
97- <Alert level = " warning " title = " Note" >
102+ <Alert level = " info " title = " Note" >
98103
99- Sentry JavaScript Serverless SDK does not support Cloud Functions for Firebase at the moment .
104+ If you are using Firestore or Cloud Functions for Firebase, you need to enable the [ Firebase integration ] ( /platforms/javascript/guides/node/configuration/integrations/firebase/ ) .
100105
101106</Alert >
102107
Original file line number Diff line number Diff line change @@ -85,5 +85,6 @@ Depending on whether an integration enhances the functionality of a particular r
8585| [ ` anthropicAIIntegration ` ] ( ./anthropic ) | ✓ | ✓ | ✓ | |
8686| [ ` googleGenAIIntegration ` ] ( ./google-genai ) | ✓ | ✓ | ✓ | |
8787| [ ` langChainIntegration ` ] ( ./langchain ) | ✓ | ✓ | ✓ | |
88+ | [ ` firebaseIntegration ` ] ( ./firebase ) | ✓ | | ✓ | |
8889| [ ` zodErrorsIntegration ` ] ( ./zodErrors ) | | | | ✓ |
8990| [ ` pinoIntegration ` ] ( ./pino ) | | ✓ | | |
Original file line number Diff line number Diff line change 3434| [ ` anthropicAIIntegration ` ] ( ./anthropic ) | ✓ | ✓ | ✓ | |
3535| [ ` googleGenAIIntegration ` ] ( ./google-genai ) | ✓ | ✓ | ✓ | |
3636| [ ` langChainIntegration ` ] ( ./langchain ) | ✓ | ✓ | ✓ | |
37+ | [ ` firebaseIntegration ` ] ( ./firebase ) | ✓ | | ✓ | |
3738| [ ` captureConsoleIntegration ` ] ( ./captureconsole ) | | | | ✓ |
3839| [ ` dataloaderIntegration ` ] ( ./dataloader ) | | | ✓ | |
3940| [ ` extraErrorDataIntegration ` ] ( ./extraerrordata ) | | | | ✓ |
4243| [ ` supabaseIntegration ` ] ( ./supabase ) | | ✓ | ✓ | |
4344| [ ` trpcMiddleware ` ] ( ./trpc ) | | ✓ | ✓ | ✓ |
4445| [ ` zodErrorsIntegration ` ] ( ./zodErrors ) | | | | ✓ |
45- | [ ` pinoIntegration ` ] ( ./pino ) | | ✓ | | |
46+ | [ ` pinoIntegration ` ] ( ./pino ) | | ✓ | | |
Original file line number Diff line number Diff line change 2222| [ ` anthropicAIIntegration ` ] ( ./anthropic ) | ✓ | ✓ | ✓ | |
2323| [ ` googleGenAIIntegration ` ] ( ./google-genai ) | ✓ | ✓ | ✓ | |
2424| [ ` langChainIntegration ` ] ( ./langchain ) | ✓ | ✓ | ✓ | |
25+ | [ ` firebaseIntegration ` ] ( ./firebase ) | ✓ | | ✓ | |
2526| [ ` amqplibIntegration ` ] ( ./amqplib ) | | | ✓ | |
2627| [ ` anrIntegration ` ] ( ./anr ) | | ✓ | | |
2728| [ ` captureConsoleIntegration ` ] ( ./captureconsole ) | | | | ✓ |
Original file line number Diff line number Diff line change 4646| [ ` anthropicAIIntegration ` ] ( ./anthropic ) | ✓ | ✓ | ✓ | |
4747| [ ` googleGenAIIntegration ` ] ( ./google-genai ) | ✓ | ✓ | ✓ | |
4848| [ ` langChainIntegration ` ] ( ./langchain ) | ✓ | ✓ | ✓ | |
49+ | [ ` firebaseIntegration ` ] ( ./firebase ) | ✓ | | ✓ | |
4950| [ ` zodErrorsIntegration ` ] ( ./zodErrors ) | | | | ✓ |
5051| [ ` pinoIntegration ` ] ( ./pino ) | | ✓ | | |
You can’t perform that action at this time.
0 commit comments