samples-python icon indicating copy to clipboard operation
samples-python copied to clipboard

Use `asyncio.to_thread` to avoid `DeadlockError` while sending exception to Sentry

Open Natim opened this issue 1 month ago • 3 comments

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

  1. Refs #140

  2. How was this tested: In production _DeadlockError was raised

  3. Any docs updates needed? No

Natim avatar Dec 17 '25 10:12 Natim