Hi,
I have noticed that we do not receive events for errors occurring on threads created using threading (Python & Python SDK) within a Flask application (we use the Sentry Flask integration).
import sentry_sdk
sentry_sdk.init(
dsn="dsn_url"
)
def error_func():
print([][0])
if __name__ == "__main__":
import threading
thread = threading.Thread(target=error_func)
thread.start()
while True:
pass
Would you know if there is any simple way to make the SDK correctly report the error event? I’d rather not have to run a try except within my threads or things like that.