-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit f75c3ed
feat(node): Pass requestHook and responseHook option to OTel (#17996)
This adds two new options into the `nativeNodeFetchIntegration` - the
only thing it does is passing the two new options directly into the OTel
instrumentation. Since this is OTel related, this is only accessible
within the `node` SDK.
The documentation will be then updated for the fetch integration ([it
seems](https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/nodefetch/)
that also the `spans` are missing)
(closes #17953)1 parent 39f85b3 commit f75c3ed
File tree
3 files changed
+87
-1
lines changed- dev-packages/node-integration-tests/suites/tracing/http-client-spans/fetch-forward-request-hook
- packages/node/src/integrations
3 files changed
+87
-1
lines changedLines changed: 26 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 | + | ||
Lines changed: 58 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 | + | ||
51 | + | ||
52 | + | ||
53 | + | ||
54 | + | ||
55 | + | ||
56 | + | ||
57 | + | ||
58 | + | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | - | ||
11 | + | ||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | + | ||
110 | + | ||
109 | 111 | | |
110 | 112 | | |
111 | 113 | | |
| |||
0 commit comments