-
-
Notifications
You must be signed in to change notification settings - Fork 482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
transport_failure_callback
gives no information on failure reason
#661
Comments
Hello @nateberkopec I would be happy to help on this issue as it impacts us. |
@EtienneDepaulis Yes please! |
I've finally took the time to look at the code and I as I'm no ruby expert I would like to have your opinion on the best approach: Here is the code responsible for calling the def failed_send(e, event)
@state.failure
if e # exception was raised
configuration.logger.error "Unable to record event with remote Sentry server (#{e.class} - #{e.message}):\n#{e.backtrace[0..10].join("\n")}"
else
configuration.logger.error "Not sending event due to previous failure(s)."
end
configuration.logger.error("Failed to submit event: #{get_log_message(event)}")
configuration.transport_failure_callback.call(event) if configuration.transport_failure_callback
end We are interested in the properties of the error raised passed to this method by Another option would be to store the exception in the context of the event ( Which approche seems better for you @nateberkopec ? |
@EtienneDepaulis Open a PR with a breaking change against the |
close with #1003 |
All we are given in this callback is the hash version of the event we originally intended to send, but it would be useful to also be given the exception that caused the send failure as an additional argument. Otherwise we have no idea why the request failed in the first place.
The text was updated successfully, but these errors were encountered: