-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit 43b383c
feat(firebase): Instrument cloud functions for firebase v2 (#17952)
Closes: #17861
This adds
- instrumentation of Cloud Functions for Firebase (v2) along side the
Firestore integration. It can be used with the
`Sentry.firebaseIntegration()` (this is atm not documented in the docs
and got added in #16719, but will be added right after this has been
merged. See getsentry/sentry-docs#15247).
- The test app for Firebase has been rewritten and updated since it
requires a little special setup.
<details>
<summary>Supported functions</summary>
<ul>
<li>onRequest</li>
<li>onCall</li>
<li>onDocumentCreated</li>
<li>onDocumentUpdated</li>
<li>onDocumentDeleted</li>
<li>onDocumentWritten</li>
<li>onDocumentCreatedWithAuthContext</li>
<li>onDocumentUpdatedWithAuthContext</li>
<li>onDocumentDeletedWithAuthContext</li>
<li>onDocumentWrittenWithAuthContext</li>
<li>onSchedule</li>
<li>onObjectFinalized</li>
<li>onObjectArchived</li>
<li>onObjectDeleted</li>
<li>onObjectMetadataUpdated</li>
</ul>
</details>
Bear in mind that the OTel attributes for FaaS are still in
[Development](https://opentelemetry.io/docs/specs/semconv/faas/faas-spans/)
and could change or be removed over time (not sure if we should then
even add them in here at this point in time).1 parent 152b9d4 commit 43b383c
File tree
21 files changed
+667
-80
lines changed- dev-packages/e2e-tests/test-applications/node-firebase
- firestore-app
- src
- functions
- src
- tests
- packages/node/src/integrations/tracing/firebase
- otel
- patches
21 files changed
+667
-80
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | - | ||
243 | + | ||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
| |||
Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 33 additions & 47 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | - | ||
1 | + | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + | ||
2 | 6 | | |
3 | - | ||
7 | + | ||
4 | 8 | | |
5 | - | ||
9 | + | ||
6 | 10 | | |
7 | - | ||
8 | - | ||
9 | - | ||
10 | - | ||
11 | - | ||
11 | + | ||
12 | 12 | | |
13 | - | ||
14 | - | ||
13 | + | ||
14 | + | ||
15 | 15 | | |
16 | 16 | | |
17 | - | ||
17 | + | ||
18 | 18 | | |
19 | - | ||
20 | - | ||
19 | + | ||
20 | + | ||
21 | + | ||
22 | + | ||
21 | 23 | | |
22 | 24 | | |
23 | - | ||
24 | - | ||
25 | - | ||
26 | - | ||
27 | - | ||
28 | - | ||
29 | - | ||
30 | - | ||
31 | - | ||
25 | + | ||
32 | 26 | | |
33 | - | ||
34 | - | ||
27 | + | ||
35 | 28 | | |
36 | - | ||
37 | - | ||
38 | - | ||
39 | - | ||
40 | - | ||
41 | - | ||
42 | - | ||
29 | + | ||
30 | + | ||
31 | + | ||
43 | 32 | | |
44 | 33 | | |
45 | - | ||
46 | - | ||
47 | - | ||
48 | - | ||
49 | - | ||
50 | - | ||
51 | - | ||
52 | - | ||
34 | + | ||
53 | 35 | | |
54 | - | ||
55 | - | ||
36 | + | ||
37 | + | ||
38 | + | ||
39 | + | ||
40 | + | ||
56 | 41 | | |
57 | - | ||
42 | + | ||
58 | 43 | | |
59 | - | ||
60 | - | ||
61 | - | ||
62 | - | ||
44 | + | ||
63 | 45 | | |
64 | - | ||
46 | + | ||
47 | + | ||
48 | + | ||
49 | + | ||
50 | + | ||
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | - | ||
19 | + | ||
20 | + | ||
21 | + | ||
22 | + | ||
23 | + | ||
24 | + | ||
25 | + | ||
26 | + | ||
20 | 27 | | |
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | + | ||
11 | + | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | + | ||
16 | + | ||
17 | + | ||
18 | + | ||
19 | + | ||
20 | + | ||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | + | ||
11 | + | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | + | ||
16 | + | ||
17 | + | ||
18 | + | ||
19 | + | ||
Lines changed: 50 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | + | ||
11 | + | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | + | ||
16 | + | ||
17 | + | ||
18 | + | ||
19 | + | ||
20 | + | ||
21 | + | ||
22 | + | ||
23 | + | ||
24 | + | ||
25 | + | ||
26 | + | ||
27 | + | ||
28 | + | ||
29 | + | ||
30 | + | ||
31 | + | ||
32 | + | ||
33 | + | ||
34 | + | ||
35 | + | ||
36 | + | ||
37 | + | ||
38 | + | ||
39 | + | ||
40 | + | ||
41 | + | ||
42 | + | ||
43 | + | ||
44 | + | ||
45 | + | ||
46 | + | ||
47 | + | ||
48 | + | ||
49 | + | ||
50 | + | ||
0 commit comments