> ## Documentation Index
> Fetch the complete documentation index at: https://docs.appsignal.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Ignore Namespaces

In a previous guide, we walked through the steps needed to [set up custom namespaces](/guides/namespaces) in your application. You can use these namespaces to group parts of an application together, but you can also use them to ignore these namespaces entirely. This could be a good alternative to ignoring many [individual actions](/guides/filter-data/ignore-actions).

<Tip>
  Ignoring namespaces will **ignore error and performance data** from all
  actions in namespaces. AppSignal will still report [custom metrics
  data](/metrics/custom) recorded in any of the namespace actions.
</Tip>

## Ignoring namespaces

Namespaces can be ignored by customizing your application's AppSignal integration configuration. The "ignore namespaces" configuration option will allow you to configure a denylist of namespaces. 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](https://www.appsignal.com/plans).

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

* [Ruby](#ruby)
* [Elixir](#elixir)
* [Node.js](#nodejs)
* [Python](#python)
* [Go](#go)
* [Java](#java)
* [PHP](#php)

<Tip>
  If you're unsure what namespaces you need to configure in your application's
  AppSignal configuration, you can use the namespaces filtering dropdown on
  AppSignal.com and copy those namespaces into your AppSignal configuration.
</Tip>

## Ruby

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

<CodeGroup>
  ```ruby Ruby theme={null}
  Appsignal.configure do |config|
    config.ignore_namespaces += [
      "http_request", # "web" namespace on AppSignal
      "background_job", # "background" namespace on AppSignal
      "admin",
      "private"
    ]
  end
  ```

  ```yaml YAML theme={null}
  production:
    ignore_namespaces:
      - "http_request" # "web" namespace on AppSignal
      - "background_job" # "background" namespace on AppSignal
      - "admin"
      - "private"
  ```
</CodeGroup>

For more information about this config option, see the [`ignore_namespaces` config option][ruby ignore_namespaces] documentation.

## Elixir

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

<CodeGroup>
  ```elixir Elixir theme={null}
  import Config

  config :appsignal, :config,
    ignore_namespaces: [
      "http_request", # "web" namespace on AppSignal
      "background_job", # "background" namespace on AppSignal
      "admin",
      "private"
    ]
  ```
</CodeGroup>

For more information about this config option, see the [`ignore_namespaces` config option][elixir ignore_namespaces] documentation.

## Node.js

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

<CodeGroup>
  ```javascript Node.js theme={null}
  const { Appsignal } = require("@appsignal/nodejs");

  new Appsignal({
    // Other config
    ignoreNamespaces: ["web", "background", "admin", "private"],
  });
  ```
</CodeGroup>

For more information about this config option, see the [`ignoreNamespaces` config option][nodejs ignore_namespaces] documentation.

## Python

To ignore namespaces in Python, add the following to your AppSignal configuration file. The [`ignore_namespaces`][python ignore_namespaces] value is a list of strings.

<CodeGroup>
  ```python Python theme={null}
  from appsignal import Appsignal

  appsignal = Appsignal(
      # Other config
      ignore_namespaces=["web", "background", "admin", "private"]
  )
  ```
</CodeGroup>

For more information about this config option, see the [`ignore_namespaces` config option][python ignore_namespaces] documentation.

## Go

To ignore namespaces in Go applications, add the following to your AppSignal configuration file. The [`ignore_namespaces`][go ignore_namespaces] value is a slice of strings.

<CodeGroup>
  ```go Go theme={null}
  res := resource.NewWithAttributes(
  	attribute.StringSlice("appsignal.config.ignore_namespaces", []string{"admin", "secret"}),
  	// And other resource attributes
  )
  ```
</CodeGroup>

For more information about this config option, configure the [`ignore_namespaces` config option][go ignore_namespaces].

## Java

To ignore namespaces in Java applications, configure the [`ignore_namespaces` config option](/java/configuration/options#option-ignore_namespaces) using the `OTEL_RESOURCE_ATTRIBUTES` environment variable.

<CodeGroup>
  ```bash Bash theme={null}
  function encode() {
    echo -n "$@" | sed 's/,/%2C/g'
  }

  export OTEL_RESOURCE_ATTRIBUTES="\
    appsignal.config.ignore_namespaces=$(encode "admin,secret"),\
    ..."
  ```
</CodeGroup>

For more information about this config option, see the [`ignore_namespaces` config option](/java/configuration/options#option-ignore_namespaces) documentation.

## PHP

To ignore namespaces in PHP applications, configure the [`ignore_namespaces` config option](/php/configuration/options#option-ignore_namespaces).

<CodeGroup>
  ```php PHP theme={null}
  return [
      'ignore_namespaces' => ['admin', 'secret'],
      // ... other options
  ];
  ```
</CodeGroup>

For more information about this config option, see the [`ignore_namespaces` config option](/php/configuration/options#option-ignore_namespaces) documentation.

[elixir ignore_namespaces]: /elixir/configuration/options.html#option-ignore_namespaces

[nodejs ignore_namespaces]: /nodejs/3.x/configuration/options.html#option-ignoreNamespaces

[notifications]: /application/notification-settings.html

[ruby ignore_namespaces]: /ruby/configuration/options.html#option-ignore_namespaces

[python ignore_namespaces]: /python/configuration/options.html#option-ignore_namespaces

[go ignore_namespaces]: /go/configuration/options.html#option-ignore_namespaces
