Ignore errors
Errors (or exceptions) raised by an app will be visible in the Error incident list. Not all errors are important and can be ignored.
To prevent AppSignal from reporting these errors and alerting you, you can add a list of errors to ignore in the app's configuration. Ignoring errors will filter out the error data from the data sent to AppSignal. The filtered error will not be visible in the incident lists.
Ignoring errors
To ignore errors, it's possible to configure an "ignore errors" denylist in the AppSignal integration configuration. By adding error names to this list the integrations will know not to send any ignored error data along with the other app data.
For each configuration the "ignore errors" list needs to be set in the AppSignal configuration. Read this guide for the integration language your app uses to configure the ignored errors list.
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.js
const { Appsignal } = require("@appsignal/nodejs");
const appsignal = new Appsignal({
// Other config
ignoreErrors: ["SpecificError", "AnotherError"],
});
module.exports = { appsignal };
Read more
- Read more about the Node.js
ignoreErrors
config option. - Exception handling with AppSignal in Node.js.
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/],
});
Read more
- Read more about the front-end JavaScript
ignoreErrors
config option. - Exception handling with AppSignal in Node.js.
Next steps
- Ignoring actions - the next step in this guide
- Request header collection - the previous step in this guide
- Filtering app data - the start of this guide
- Getting started guides - Guides overview