Documentation navigation

Ignore actions

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 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 action name

Also see the ignore_actions configuration option documentation for more about this configuration option.

# config/appsignal.exs
use Mix.Config

config :appsignal, :config,
  name: "appsignal_phoenix_example",
  push_api_key: "00000000-0000-0000-0000-000000000000",
  ignore_actions: ["PingController#is_up", "SecondController#healthcheck"]

You can also configure ignore actions via an environment variable.

export APPSIGNAL_IGNORE_ACTIONS="PingController#is_up,SecondController#healthcheck"

We'd like to set cookies, read why.