Logo of AppSignal

Docs navigation

Custom namespaces for Elixir apps

Note: Support for custom namespaces was added in version 1.3.0 of the AppSignal for Elixir package.

For more information about what namespaces are, please see our namespaces documentation.

Configuring a namespace

Using the instrumentation decorators and helper functions it's possible to set a namespace for a transaction. This can currently only be configured when creating the transaction.

Once the namespace is set and the application is sending data to the AppSignal servers, the new namespace will appear in the navigation on AppSignal.com. Note: Data previously reported for the same action is not moved to the new namespace.

Please see the documentation for decorators or instrumentation helpers on how to configure a namespace.

Ignore by namespace

To ignore all actions in a namespace you can configure AppSignal to ignore one or more namespaces in your app's configuration. It's also possible to only ignore one or more specific actions.

Ignoring actions or namespaces will ignore all transaction 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.

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

# config/appsignal.exs
use Mix.Config

config :appsignal, :config,
  ignore_namespaces: ["admin", "private"]

You can also configure ignore actions using an environment variable.

export APPSIGNAL_IGNORE_NAMESPACES="admin,private"

We'd like to set cookies, read why.