aws / aws/aws-lambda-python-runtime-interface-client
Recent changes broke the Sentry AWS Lambda integration
- 主要語言
- Python
- 星號
- 294
- 分支
- 84
- 平均合併
- 3 天 7 分鐘
- 30 天內合併 PR
- 3
描述
Hello!
I am the maintainer of the [sentry-sdk](https://pypi.org/project/sentry-sdk/) for python. We have an integration with AWS Lambda that allows users to capture unhandled errors during AWS Lambda init or invocation.
There was a change recently: https://github.com/aws/aws-lambda-python-runtime-interface-client/pull/163/files#diff-4513a869520b19ae4e30058106d7c3b5ddbb79216b5e9bd922d83389fb86c603R481-R483
This breaks our integration, because we monkey patch `post_init_error` and use `sys.exc_info()` to access the currently handled exception.
With this change linked above the call to `post_init_error` has moved outside the exception handling block, so we no longer have access to the currently handled exception.
Is there any chance, we can move the call to `post_init_error` again under the exception handling block?
I have also a PR for this: https://github.com/aws/aws-lambda-python-runtime-interface-client/pull/171
貢獻指南
研究方向
首先檢查所引用的 runtime-interface-client 變更,並定位 post_init_error 相對於例外處理程式碼區塊的呼叫位置。比較 pull request #171 中提出的修正方案。當 Sentry 整合能夠在 AWS Lambda 初始化和呼叫錯誤回報期間再次存取目前的例外時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- aws, python
- 領域
- backend, cloud
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100