Skip to main content
AppSignal for PHP can be configured through the config/appsignal.php file or by using environment variables. This page lists all available configuration options. Learn more about the configuration load order. Once you have configured AppSignal, you can validate the current config:
Shell

Available options

collector_endpoint

Description

The URL of the AppSignal collector to send trace, metric, and log data to. AppSignal shows this URL when you create a new application, and it’s also available for existing applications.
config/appsignal.php

environment

Description

The environment of the app to be reported to AppSignal.
config/appsignal.php
Note: Changing the name or environment of an existing app will create a new app on AppSignal.com.

name

Description

The display name of your application on AppSignal.com.
config/appsignal.php
Note: Changing the name or environment of an existing app will create a new app on AppSignal.com.

push_api_key

Description

The organization-level key used to authenticate with the Push API. Read more about the AppSignal Push API key.
config/appsignal.php

active

Description

Configure whether AppSignal is active for a given environment. Most commonly used in the file configuration per environment.

app_path

Description

The location of the app on the host’s file system. Helps AppSignal clean up backtraces by stripping the absolute app path from backtrace lines, showing only paths within the project directory. This makes our Backtrace links feature possible. The AppSignal package sets this value automatically based on the detected project root. If the automatic app path detection doesn’t work, you can override it:
config/appsignal.php

filter_attributes

Description

The filter_attributes config option allows you to filter out specific attributes from being reported to AppSignal. This can be useful to filter out sensitive or non-relevant information from being reported. If an attribute is filtered out this way, it will not show up in the interface at all.
config/appsignal.php

filter_function_parameters

Description

This config option allows you to filter out any function parameters set in the appsignal.function.parameters span attribute. AppSignal replaces values for the keys listed in the filter_function_parameters config option with [FILTERED].
config/appsignal.php

filter_request_payload

Description

This config option allows you to filter out any request payload data set in the appsignal.request.payload span attribute. AppSignal replaces values for the keys listed in the filter_request_payload config option with [FILTERED]. Read more about request query parameter filtering.
config/appsignal.php

filter_request_query_parameters

Description

This config option allows you to filter out any request query parameters set in the appsignal.request.query_parameters span attribute. AppSignal replaces values for the keys listed in the filter_request_query_parameters config option with [FILTERED]. Read more about request query parameter filtering.
config/appsignal.php

filter_request_session_data

Description

The filter_request_session_data config option allows you to filter out any request session data set in the appsignal.request.session_data span attribute. AppSignal replaces values for the keys listed in the filter_request_session_data config option with [FILTERED]. Read more about request session data filtering.
config/appsignal.php

hostname

Description

Helps AppSignal recognize different hosts for traces and tag them automatically with the hostname. The AppSignal package sets this value automatically using gethostname().

ignore_actions

Description

With this config option you can specify a list of actions that will be ignored by AppSignal. Everything that happens including exceptions will not be transmitted to AppSignal. This can be useful to ignore health check endpoints or other actions that you don’t want to monitor. Read more about ignoring actions.
config/appsignal.php

ignore_errors

Description

This config option allows you to ignore specific errors from being reported to AppSignal. This can be useful to ignore expected errors or errors that can’t be solved. Read more about ignoring errors.
config/appsignal.php

ignore_logs

Description

List of log messages that will be ignored. Any log message containing any of the elements of the list will not be transmitted to AppSignal. A small subset of regex syntax is supported, read more about it in our Ignore Logs guide. The expected format is a comma-separated list of values.
config/appsignal.php

ignore_namespaces

Description

This config option allows you to ignore specific namespaces from being reported to AppSignal. This can be useful to ignore specific parts of your application from being monitored. Read more about namespaces.
config/appsignal.php

request_headers

Description

Configure which request headers to include when a request is made to an HTTP server. This option is an allowlist. It only includes the headers that are configured. If the list is empty, no headers are included. AppSignal reads request headers from the HTTP request. Each key is a normalized (lowercase) header name.
config/appsignal.php
To configure AppSignal to not store any HTTP request headers, explicitly set the config value to an empty array.
config/appsignal.php

response_headers

Description

Configure which response headers to include when a request is made by an HTTP client. This option is an allowlist. It only includes the headers that are configured. If the array is empty, no headers are included. Each item in this array should be a normalized HTTP response header name (lowercase).
config/appsignal.php
To configure AppSignal to not store any HTTP response headers, explicitly set the config value to an empty array.
config/appsignal.php

revision

Description

The currently running version of your app. AppSignal will create a deploy marker when this value changes, and tag all incoming data with the current revision. The AppSignal package sets this value automatically using git rev-parse HEAD. Read more about deploy markers in the deploy markers topic.

send_function_parameters

Description

Configure whether to include function parameters in traces. If set to false no such data is sent to our servers. These values are set with the appsignal.function.parameters span attribute.
config/appsignal.php

send_request_payload

Description

Configure whether to send request payload data in traces. If set to false no such data is sent to our servers. These values are set with the appsignal.request.payload span attribute. For more information please read about request payload filtering.
config/appsignal.php

send_request_query_parameters

Description

Configure whether to include request query parameters in traces. If set to false no such data is sent to our servers. These values are set with the appsignal.request.query_parameters span attribute. For more information please read about request parameter filtering.
config/appsignal.php

send_request_session_data

Description

Configure whether to send request session data in traces. If set to false no such data is sent to our servers. These values are set with the appsignal.request.session_data span attribute. For more information please read about request session data filtering.
config/appsignal.php

service_name

Description

The service name helps AppSignal recognize different services and automatically groups their traces into a matching namespace. Choose a name that fits your application, like “Web server”, “Background worker”, “Email service”, “Authentication service”, etc.
config/appsignal.php