samples-python
samples-python copied to clipboard
Use `asyncio.to_thread` to avoid `DeadlockError` while sending exception to Sentry
What was changed
Make the capture_exception call async in Sentry intercepor
Why?
Use asyncio.to_thread to avoid DeadlockError while sending exception to Sentry
Checklist
-
Refs #140
-
How was this tested: In production _DeadlockError was raised
-
Any docs updates needed? No