> ## 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.

# Namespaces negeren

In een vorige gids hebben we de stappen doorlopen die nodig zijn om [aangepaste namespaces op te zetten](/guides/namespaces) in uw applicatie. U kunt deze namespaces gebruiken om onderdelen van een applicatie te groeperen, maar u kunt ze ook gebruiken om deze namespaces volledig te negeren. Dit kan een goed alternatief zijn voor het negeren van veel [individuele acties](/guides/filter-data/ignore-actions).

<Tip>
  Het negeren van namespaces zal **gegevens over fouten en prestaties van alle
  acties in namespaces negeren**. AppSignal zal nog steeds [aangepaste
  metric-gegevens](/metrics/custom) rapporteren die in een van de
  namespace-acties zijn vastgelegd.
</Tip>

## Namespaces negeren

Namespaces kunnen worden genegeerd door de AppSignal-integratieconfiguratie van uw applicatie aan te passen. Met de "ignore namespaces" configuratieoptie kunt u een denylist van namespaces configureren. Alle namespaces in deze lijst worden genegeerd, wat betekent dat de gegevens van deze acties niet naar de AppSignal-servers worden verzonden en niet meetellen voor [het facturatieabonnement van uw organisatie](https://www.appsignal.com/plans).

De "ignore namespaces" configuratieoptie wordt anders geconfigureerd per integratietaal. Zie de lijst met integraties hieronder voor de taal die uw app gebruikt:

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

<Tip>
  Als u niet zeker weet welke namespaces u in de AppSignal-configuratie van uw
  applicatie moet configureren, kunt u het filterdropdownmenu voor namespaces op
  AppSignal.com gebruiken en die namespaces in uw AppSignal-configuratie
  kopiëren.
</Tip>

## Ruby

Om namespaces in Ruby te negeren, voegt u het volgende toe aan uw AppSignal-configuratiebestand. De waarde van [`ignore_namespaces`][ruby ignore_namespaces] is een array van 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>

Zie voor meer informatie over deze configuratieoptie de [documentatie van de `ignore_namespaces` configuratieoptie][ruby ignore_namespaces].

## Elixir

Om namespaces in Elixir te negeren, voegt u het volgende toe aan uw AppSignal-configuratiebestand. De waarde van [`ignore_namespaces`][elixir ignore_namespaces] is een lijst van 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>

Zie voor meer informatie over deze configuratieoptie de [documentatie van de `ignore_namespaces` configuratieoptie][elixir ignore_namespaces].

## Node.js

Om namespaces in Node.js te negeren, voegt u het volgende toe aan uw AppSignal-configuratiebestand. De waarde van [`ignoreNamespaces`][nodejs ignore_namespaces] is een array van strings.

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

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

Zie voor meer informatie over deze configuratieoptie de [documentatie van de `ignoreNamespaces` configuratieoptie][nodejs ignore_namespaces].

## Python

Om namespaces in Python te negeren, voegt u het volgende toe aan uw AppSignal-configuratiebestand. De waarde van [`ignore_namespaces`][python ignore_namespaces] is een lijst van strings.

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

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

Zie voor meer informatie over deze configuratieoptie de [documentatie van de `ignore_namespaces` configuratieoptie][python ignore_namespaces].

## Go

Om namespaces in Go-applicaties te negeren, voegt u het volgende toe aan uw AppSignal-configuratiebestand. De waarde van [`ignore_namespaces`][go ignore_namespaces] is een slice van strings.

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

Zie voor meer informatie over deze configuratieoptie de [`ignore_namespaces` configuratieoptie][go ignore_namespaces].

## Java

Om namespaces in Java-applicaties te negeren, configureert u de [`ignore_namespaces` configuratieoptie](/java/configuration/options#option-ignore_namespaces) met behulp van de `OTEL_RESOURCE_ATTRIBUTES` omgevingsvariabele.

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

Zie voor meer informatie over deze configuratieoptie de [documentatie van de `ignore_namespaces` configuratieoptie](/java/configuration/options#option-ignore_namespaces).

## PHP

Om namespaces in PHP-applicaties te negeren, configureert u de [`ignore_namespaces` configuratieoptie](/php/configuration/options#option-ignore_namespaces).

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

Zie voor meer informatie over deze configuratieoptie de [documentatie van de `ignore_namespaces` configuratieoptie](/php/configuration/options#option-ignore_namespaces).

[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
