Commit 4edac41
authored
ref(serverless): Remove
This PR removes the use of the `rethrowAfterCapture` option from the AWS handler-wrapping function `@sentry/serverless` provides. Without its use, the code follows the same path as it has been when the option has been set to its default value, which is `true`. Though this is _technically_ a breaking change for anyone who currently has it set to `false`,
a) the option has never been documented,
b) it never should have existed in the first place (we do error _monitoring_, not error _handling_, meaning there should be no question as to whether we rethrow the error after recording it),
c) of all of the public projects on GH, only three are using it set explicitly to `true`, and zero are using it set to `false`.
For the three projects using it set to `true`, there is no behavior change. Further, since all three are written in TS, the option hasn't been removed from the `WrapperOptions` type, so that their continuing to pass it doesn’t cause type errors. It has been made optional, though, so that our non-use of it also doesn't cause type errors. There's also a TODO so that we remember to remove it in v7.
Fixes #3364.rethrowAfterCapture use in AWS lambda wrapper (#4448)1 parent 5c75be0 commit 4edac41
File tree
3 files changed
+10
-23
lines changed- packages/serverless
- src
- test
3 files changed
+10
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
7 | 11 | | |
8 | 12 | | |
9 | 13 | | |
| |||
945 | 949 | | |
946 | 950 | | |
947 | 951 | | |
948 | | - | |
| 952 | + | |
949 | 953 | | |
950 | 954 | | |
951 | 955 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
215 | 216 | | |
216 | 217 | | |
217 | 218 | | |
218 | | - | |
| 219 | + | |
219 | 220 | | |
220 | 221 | | |
221 | 222 | | |
222 | | - | |
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
296 | | - | |
| 296 | + | |
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
| |||
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
312 | | - | |
313 | | - | |
314 | | - | |
| 312 | + | |
315 | 313 | | |
316 | 314 | | |
317 | 315 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | 94 | | |
110 | 95 | | |
111 | 96 | | |
| |||
0 commit comments