Closed chrisjingram closed 8 months ago
Hey,
If I have some tasks such as:
Async { PostToSlack.message("hello world") }
If these fail, I'm not finding out through my error reporting, Sentry.
How can I catch all errors in Async tasks to report them to Sentry?
For example, in Rails I do something like:
rescue_from StandardError, with: :show_error def show_error(exception) Sentry.capture_exception(exception) end
Hey,
If I have some tasks such as:
If these fail, I'm not finding out through my error reporting, Sentry.
How can I catch all errors in Async tasks to report them to Sentry?
For example, in Rails I do something like: