Documentation navigation

Ignore actions

In an app there may be certain actions that you don't want to report to AppSignal. The most common use case is a web endpoint that your load balancer uses to check if your app is still responding or your entire administration panel. This causes a lot of traffic but is not a crucial endpoint to have AppSignal monitor. In fact, it may even distort averages in a namespace and make graph data unusable.

💡 Ignoring actions will ignore error and performance data from those actions. Custom metrics data recorded in an action will still be reported.

Ignoring actions

These actions can be ignored by customizing the configuration for AppSignal integrations in apps. The "ignore actions" configuration option will allow you to configure a list of action names, as reported to AppSignal. Any action in this list will be ignored, meaning the data from these actions will not be sent to the AppSignal servers, and will not count towards your organization's billing plan.

The "ignore actions" config option is configured differently per integration language. See the list of integrations below for the one your app uses.

💡 If you're unsure of the action names to configure in the app configuration, find the action name to ignore in your app on AppSignal.com, and copy it into the AppSignal configuration.

Ruby

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

The below example is for a Rails app.

1
2
3
4
5
6
7
8
9
# Example: config/appsignal.yml
production:
  ignore_actions:
  - "UptimeController#healthcheck"
  - "AdminController#index"
  - "Admin::UsersController#show"
  - "Admin::UsersController#edit"
  - "MyBackgroundWorker#perform"
  # Other config

If you use Sinatra or any other framework, use the HTTP method and path you used to specify your route, for example:

1
2
3
4
5
default: &defaults
  ignore_actions:
    - "GET /healthcheck"
    - "GET /pages/:id"
    - "POST /pages/create"

Elixir

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

1
2
3
# Example: config/appsignal.exs
config :appsignal, :config,
  ignore_actions: ["AppsignalPhoenixExampleWeb.UptimeController#healthcheck", "AppsignalPhoenixExampleWeb.AdminController#index"]

Node.js

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

The name of a Span maps to an "action name" on AppSignal.com. An action name is used to identify the location of a certain sample error and performance issues. You can see a list of these in the "Action name" column of the Issue list under Performance in the sidebar.

1
2
3
4
const appsignal = new Appsignal({
  # Other config
  ignoreActions: ["GET /pages/:id", "GET /healthcheck", "GET /admin"]
})

Next steps


We'd like to set cookies, read why.