fix#1246: raise error when send_event failed - #1268
Conversation
|
@sujh thanks for the PR! I agree that
I'm actually working on a solution right now and will open a PR later this week 🙂 |
|
@st0012 glad to know the progress! I am kinda confused why Sentry.capture_* shouldn't raise error. If there is an error in Sentry.capture_*, it will be swallowed by ThreadPoolExecutor. |
|
@sujh although events are sent by workers by default now, there still are users who fall back to the old behavior by setting config.background_worker_threads = 0in those cases, the error will be raised in the same thread too. so we also need to maintain the same behavior for them. |
|
@st0012 Oh, got it. Thanks for your patiant explain🙂 |
|
closing because the functionality has been implemented in #1298 |
Description
Sentry::Transport will swallow exceptions when send_event failed, so the app include sidekiq can't catch error and retry.
Related issue: https://github.com/getsentry/sentry-ruby/issues/1246