• Heinrich Lee Yu's avatar
    Fix Sentry tracking of SQL queries · 7c502e91
    Heinrich Lee Yu authored
    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
    7c502e91
error_tracking.rb 7.61 KB