Ignore an error class with Airbrake

Posted About 13 years ago. Visible to the public.

Airbrake (formerly Hoptoad) already ignores certain errors like InvalidAuthenticityToken by default (see Airbrake::Configuration::IGNORE_DEFAULT).\
To ignore additional classes of errors, put this into config/initializer/airbrake.rb:

Airbrake.configure do |config|
  config.ignore << 'ActiveRecord::IgnoreThisError'
end

You probably also want to ignore ActionController::MethodNotAllowed and ActionController::UnknownHttpMethod exceptions.

See the github page Show archive.org snapshot for more options on how to filter certain errors.

Henning Koch
Last edit
Over 11 years ago
Keywords
HoptoadNotifier, hoptoad_notifier
License
Source code in this card is licensed under the MIT License.
Posted by Henning Koch to makandra dev (2011-04-28 09:20)