class Sentry::Rails::CaptureExceptions

def capture_exception(exception, env)

def capture_exception(exception, env)
  # the exception will be swallowed by ShowExceptions middleware
  return if show_exceptions?(exception, env) && !Sentry.configuration.rails.report_rescued_exceptions
  Sentry::Rails.capture_exception(exception).tap do |event|
    env[ERROR_EVENT_ID_KEY] = event.event_id if event
  end
end