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.
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:
Ruby
To ignore errors in Ruby, add the following to your AppSignal configuration file. The ignore_errors
value is an Array of Strings.
# Example: config/appsignal.yml production: ignore_errors: - ActiveRecord::RecordNotFound - ActionController::RoutingError
Read More
- Read more about the Ruby
ignore_errors
config option. - Exception handling with AppSignal in Ruby.
Elixir
To ignore errors in Elixir, add the following to your AppSignal configuration file. The ignore_errors
value is a List of Strings.
# Example: config/appsignal.exs config :appsignal, :config, ignore_errors: ["SpecificError", "AnotherError"]
Read More
- Read more about the Elixir
ignore_errors
config option. - Exception handling with AppSignal in Elixir.
Node.js
To ignore errors in Node.js, add the following to your AppSignal configuration file. The ignoreErrors
value is an Array of Strings.
// Example: appsignal.cjs const { Appsignal } = require("@appsignal/nodejs"); new Appsignal({ // Other config ignoreErrors: ["SpecificError", "AnotherError"], });
Read More
- Read more about the Node.js
ignoreErrors
config option. - Exception handling with AppSignal in Node.js.
Python
To ignore errors in Python, add the following to your AppSignal configuration file. The ignore_errors
value is a list of strings.
# __appsignal__.py from appsignal import Appsignal appsignal = Appsignal( # Other config ignore_errors: ["SpecificError", "AnotherError"], )
Read More
- Read more about the Python
ignore_errors
config option. - Exception handling with AppSignal in Python.
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.
// Example: appsignal.js import Appsignal from "@appsignal/javascript"; export const appsignal = new Appsignal({ // Other config ignoreErrors: [/a specific error message/, /another error message/], });