Sha256: 0e8febbe625175a025204a62b20d16e7586dc3e4f0ac4c727cedb80358cb87a8
Contents?: true
Size: 1.06 KB
Versions: 7
Compression:
Stored size: 1.06 KB
Contents
if defined?(Airbrake) raise "This gem isn't compatible with Airbrake. Please remove it from the Gemfile." end GovukError.configure do |config| # We're misusing the `should_capture` block here to hook into raven until # there's a better way: https://github.com/getsentry/raven-ruby/pull/750 config.should_capture = Proc.new { GovukStatsd.increment("errors_occurred") # For backwards compatibility GovukStatsd.increment("errbit.errors_occurred") # Return true so that we don't accidentally skip the error true } config.excluded_exceptions = [ 'AbstractController::ActionNotFound', 'ActionController::BadRequest', 'ActionController::InvalidAuthenticityToken', 'ActionController::RoutingError', 'ActionController::UnknownAction', 'ActiveJob::DeserializationError', 'ActiveRecord::RecordNotFound', 'CGI::Session::CookieStore::TamperedWithCookie', 'Mongoid::Errors::DocumentNotFound', 'Sinatra::NotFound', ] config.transport_failure_callback = Proc.new { GovukStatsd.increment("error_reports_failed") } end
Version data entries
7 entries across 7 versions & 1 rubygems