Configure Headers
An application’s session data can be filtered by configuring keys in an allowlist. This allowlist system will filter out all the session data keys not in this list. AppSignal does not collect the name or value of headers filtered out by your allowlist.Example
For example, an application with this AppSignal config:Request-Method header to AppSignal.com.
This guide will show you how to configure your application’s request header filtering allowlist based on what language your application uses:
Ruby
AppSignal automatically stores the configured request headers in the Ruby integration for Rails apps and other frameworks. It has a built-in list of request headers to collect by default that you can customize with therequest_headers config option.
To configure which request headers to collect for each request, add the following configuration to your config/appsignal.yml file in the environment group where
you want it to apply. The request_headers
Elixir
AppSignal automatically stores the configured request headers for Phoenix apps and other frameworks in the Elixir integration. It has a built-in list of request headers collected by default which you can customize using the request_headers config option. To configure which request headers to collect for each request, add the following configuration to yourconfig/appsignal.exs file in the environment group where you want it to apply. The request_headers value is a list of strings.
Node.js
In the Node.js integration, AppSignal automatically stores the configured request headers for Express apps and other frameworks. It has a built-in list of request headers to collect by default that you can customize with the requestHeaders config option. To configure which request headers to collect for each request, add the following configuration to your AppSignal client instance creation. The requestHeaders value is an array of strings.Python
In the Python integration, if an app sets request headers, AppSignal will automatically collect the configured request headers. It has a built-in list of request headers to collect by default that you can customize with the request_headers config option. To configure which request headers to collect for each request, add the following configuration to your AppSignal client instance creation. Therequest_headers value is a list of strings.
Go
If an app records request headers, AppSignal will automatically filter the configured request headers. It has a built-in list of request headers to collect by default that you can customize with therequest_headers config option.
See the Go configuration page for more information on how to configure OpenTelemetry for Go apps.
To configure which request headers to collect for each request, add the following configuration to your AppSignal client instance creation. The request_headers value is a slice of strings.
Java
In the Java integration, if an app sets request headers, AppSignal will automatically collect the configured request headers. It has a built-in list of request headers to collect by default that you can customize with therequest_headers config option.
To configure which request headers to collect for each request, add the following configuration. The request_headers value is an array of strings.
PHP
In the PHP integration, if an app sets request headers, AppSignal will automatically collect the configured request headers. It has a built-in list of request headers to collect by default that you can customize with therequest_headers config option.
To configure which request headers to collect for each request, add the following configuration. The request_headers value is an array of strings.