Documentation navigation

Ignoring spans

Sometimes you have a certain action that you don't want to send to AppSignal. The most common use case is an action that your load balancer uses to check if your app is still responding or your entire administration panel.

You can ignore data from these actions being sent to AppSignal by ignoring their specific action name or their namespace in your app's configuration. This works for any code that is wrapped in an AppSignal transaction, such as a controller action or a background worker. The configured action and namespace names should match the action names that are reported in your app in the AppSignal.com UI.

Ignoring actions or namespaces will ignore all transaction/span data from this action or namespace. No errors and performance issues will be reported. Custom metrics data recorded in an action will still be reported.

Ignore by span name

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.

To ignore a span by name, add that name to the ignoreActions array:

1
2
3
4
5
const appsignal = new Appsignal({
  active: true,
  name: "<YOUR APPLICATION NAME>",
  ignoreActions: ["GET /ignore-me", "GET /ignore-me-too"]
})

We'd like to set cookies, read why.