Ignore Errors

Errors (or exceptions) raised by your application will be visible in the Error incident list. You may find AppSignal notifying you of errors you do not consider important. To prevent this, you can add a list of errors to an ignore list in your application's configuration. AppSignal will then only notify you of errors that are not on the ignore list.

If you want AppSignal to mute error notifications rather than ignore them, read our Notification Settings Documentation to learn how to customize your application's notification settings.

Ignoring errors

To ignore errors you can configure an "ignore errors" denylist in your AppSignal integration configuration. By adding error names to this list the integrations will filter out ignored errors from data sent to AppSignal.

This guide will show you how to configure your ignore errors denylist based on what language your application uses:

It's not possible to ignore all errors, or disable error reporting entirely. It is possible to disable notifications for errors.

Ruby

To ignore errors in Ruby, add the following to your AppSignal configuration file. The ignore_errors value is an Array of Strings.

YAML
# Example: config/appsignal.yml production: ignore_errors: - ActiveRecord::RecordNotFound - ActionController::RoutingError

Names set in ignore_errors will be matched on class name and not class inheritance. If you want to match all subclasses of a certain Exception, all subclasses have to be listed separately.

Read More

Elixir

To ignore errors in Elixir, add the following to your AppSignal configuration file. The ignore_errors value is a List of Strings.

Elixir
# Example: config/appsignal.exs config :appsignal, :config, ignore_errors: ["SpecificError", "AnotherError"]

Names set in ignore_errors will be matched on module name.

Read More

Node.js

To ignore errors in Node.js, add the following to your AppSignal configuration file. The ignoreErrors value is an Array of Strings.

Node.js
// Example: appsignal.cjs const { Appsignal } = require("@appsignal/nodejs"); new Appsignal({ // Other config ignoreErrors: ["SpecificError", "AnotherError"], });

Names set in ignoreErrors will be matched on the Error objects name property only, and will not honor any class inheritance. If you want to match subclasses of Error, each subclass has to be listed separately.

Read More

Python

To ignore errors in Python, add the following to your AppSignal configuration file. The ignore_errors value is a list of strings.

Python
# __appsignal__.py from appsignal import Appsignal appsignal = Appsignal( # Other config ignore_errors: ["SpecificError", "AnotherError"], )

Names set in ignore_errors will be matched on the Exception class name only, and will not honor any class inheritance. If you want to match subclasses of Exception, each subclass has to be listed separately.

Read More

Front-end JavaScript

To ignore errors in Front-end JavaScript, add the following to your AppSignal configuration file. The ignoreErrors value is an Array of Regular expressions.

Node.js
// Example: appsignal.js import Appsignal from "@appsignal/javascript"; export const appsignal = new Appsignal({ // Other config ignoreErrors: [/a specific error message/, /another error message/], });

Names set in ignoreErrors will be matched by using a regular expression. The regular expression is matched message property of a given Error.

Read More