aws / aws/aws-lambda-python-runtime-interface-client

Recent changes broke the Sentry AWS Lambda integration

オープン
#172 コメント 0 件 リアクション 2 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
294
フォーク
84
平均マージ
3日 7分
マージ済み PR(30日)
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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。