-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit af69b45
ref(nestjs): Add
The NestJS SDK didn't add a mechanism to a bunch of caught errors. This
resulted in the errors being incorrectly marked as `handled: true` and
the `mechansim.type` defaulting to `'generic'`.
This patch:
- adds the mechanism to all `captureException` calls within the SDK,
marking caught exceptions as `handled: false`
- reviewers: Please let me know if any of these should in fact be
`handled: true`!
- adds a specific `mechanism.type`, following the naming scheme of
[trace
origin](https://develop.sentry.dev/sdk/telemetry/traces/trace-origin/)
- adjusts and adds test assertions so that we actually test on the
expected mechanismmechanism
to captured errors (#17312)1 parent 8e0ad60 commit af69b45
File tree
18 files changed
+136
-12
lines changed- dev-packages/e2e-tests/test-applications
- nestjs-11/tests
- nestjs-8/tests
- nestjs-basic-with-graphql/tests
- nestjs-basic/tests
- nestjs-distributed-tracing/tests
- nestjs-fastify/tests
- nestjs-graphql/tests
- nestjs-with-submodules-decorator/tests
- nestjs-with-submodules/tests
- packages/nestjs
- src
- integrations
- test
- integrations
18 files changed
+136
-12
lines changedLines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
71 | 71 |
| |
72 | 72 |
| |
73 | 73 |
| |
74 | + | ||
75 | + | ||
76 | + | ||
77 | + | ||
78 | + | ||
74 | 79 |
| |
75 | 80 |
| |
76 | 81 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 | + | ||
17 | + | ||
18 | + | ||
19 | + | ||
16 | 20 |
| |
17 | 21 |
| |
18 | 22 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 | + | ||
17 | + | ||
18 | + | ||
19 | + | ||
16 | 20 |
| |
17 | 21 |
| |
18 | 22 |
| |
|
Lines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
17 | + | ||
18 | + | ||
19 | + | ||
20 | + | ||
21 | + | ||
17 | 22 |
| |
18 | 23 |
| |
19 | 24 |
| |
| |||
102 | 107 |
| |
103 | 108 |
| |
104 | 109 |
| |
110 | + | ||
111 | + | ||
112 | + | ||
113 | + | ||
114 | + | ||
105 | 115 |
| |
106 | 116 |
| |
107 | 117 |
| |
|
Lines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
75 | 75 |
| |
76 | 76 |
| |
77 | 77 |
| |
78 | + | ||
79 | + | ||
80 | + | ||
81 | + | ||
82 | + | ||
78 | 83 |
| |
79 | 84 |
| |
80 | 85 |
| |
| |||
92 | 97 |
| |
93 | 98 |
| |
94 | 99 |
| |
100 | + | ||
101 | + | ||
102 | + | ||
103 | + | ||
104 | + | ||
95 | 105 |
| |
96 | 106 |
| |
97 | 107 |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 | + | ||
17 | + | ||
18 | + | ||
19 | + | ||
16 | 20 |
| |
17 | 21 |
| |
18 | 22 |
| |
|
Lines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
24 | - | ||
24 | + | ||
25 | + | ||
26 | + | ||
27 | + | ||
25 | 28 |
| |
26 | 29 |
| |
27 | 30 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
71 | 71 |
| |
72 | 72 |
| |
73 | 73 |
| |
74 | + | ||
75 | + | ||
76 | + | ||
77 | + | ||
74 | 78 |
| |
75 | 79 |
| |
76 | 80 |
| |
|
Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
17 | + | ||
18 | + | ||
19 | + | ||
20 | + | ||
21 | + | ||
17 | 22 |
| |
18 | 23 |
| |
19 | 24 |
| |
|
Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
32 | 32 |
| |
33 | 33 |
| |
34 | 34 |
| |
35 | + | ||
36 | + | ||
37 | + | ||
38 | + | ||
39 | + | ||
35 | 40 |
| |
36 | 41 |
| |
37 | 42 |
| |
|
0 commit comments