class Sentry::Rails::CaptureExceptions

def show_exceptions?(exception, env)

def show_exceptions?(exception, env)
  request = ActionDispatch::Request.new(env)
  if RAILS_7_1
    ActionDispatch::ExceptionWrapper.new(nil, exception).show?(request)
  else
    request.show_exceptions?
  end
end