Documentation navigation

Ignore namespaces

In a previous guide we've discussed setting up custom namespaces in an app. These namespaces can be used to group parts of an app together, but it can also be used to ignore these namespaces entirely. This may be easier than to ignore a lot of individual actions.

💡 Ignoring namespaces will ignore error and performance data from all actions in namespaces. Custom metrics data recorded in any of the namespace actions will still be reported.

Ignoring namespaces

Namespaces can be ignored by customizing the configuration for AppSignal integrations in apps. The "ignore namespaces" configuration option will allow you to configure a list of namespaces, as reported to AppSignal. Any namespaces 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 namespaces" 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 namespaces to configure in the app configuration, find the namespace name to ignore in your app on AppSignal.com in the namespaces filtering drop down, and copy it into the AppSignal configuration.

Ruby

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

1
2
3
4
5
6
7
8
# Example: config/appsignal.yml
production:
  ignore_namespaces:
  - "http_request" # "web" namespace on AppSignal
  - "background_job" # "background" namespace on AppSignal
  - "admin"
  - "private"
  # Other config

For more information about this config option, see the ignore_namespaces config option documentation.

Elixir

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

1
2
3
4
5
6
7
8
9
10
# Example: config/appsignal.exs
use Mix.Config

config :appsignal, :config,
  ignore_namespaces: [
    "http_request", # "web" namespace on AppSignal
    "background_job", # "background" namespace on AppSignal
    "admin",
    "private"
  ]

For more information about this config option, see the ignore_namespaces config option documentation.

Node.js

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

1
2
3
4
5
6
7
8
9
10
11
12
// Example: appsignal.js
const { Appsignal } = require("@appsignal/nodejs");

const appsignal = new Appsignal({
  // Other config
  ignoreNamespaces: [
    "web",
    "background",
    "admin",
    "private"
  ]
});

For more information about this config option, see the ignoreNamespaces config option documentation.

Next steps

We'd like to set cookies, read why.