Commit 2423299
AWS Lambda: Fix capturing errors during AWS Lambda INIT phase (#3943)
The AWS integration fails to capture errors during the INIT phase (at least in Python 3.8 and above environments).
It appears tests for this were disabled after a change in AWS' own runtime environment: #3592
A change from a few months ago where it seems like string serialisation of the JSON payload was disabled and instead the `post_init_error` is invoked directly with the json payload: aws/aws-lambda-python-runtime-interface-client@a37a43a#diff-4513a869520b19ae4e30058106d7c3b5ddbb79216b5e9bd922d83389fb86c603R483
This breaks and causes an error internally when trying to parse the string back into json, and the error is actually swallowed because of `with capture_internal_exceptions()`.
Co-authored-by: Anton Pirker <[email protected]>1 parent 4d64c4e commit 2423299
File tree
2 files changed
+4
-4
lines changed- sentry_sdk/integrations
- tests/integrations/aws_lambda
2 files changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
65 | 68 | | |
66 | 69 | | |
67 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | 319 | | |
323 | 320 | | |
324 | 321 | | |
| |||
0 commit comments