Fix Sentry tracking of SQL queries
Moves the hook to the before_send so that this would be run for exceptions that are automatically caught by Sentry Raven. This also checks Exception#cause so we handle timeouts that happen in view templates where the exceptions would be wrapped in an ActionView::Template::Error
Showing
Please register or sign in to comment