How to configure the stack depth of traces in PHP applications?

How to configure the stack depth of traces in PHP applications?

The default stack depth of traces is 15. You can change this by modifying the zpa.stack_depth directive in the zpa.ini (Linux) or php.ini (Windows).

Default configuration:
  1. In the zpa.ini (Linux) or php.ini (Windows),
zpa.stack_depth = 15
Note: The maximum allowed value is 30.

To modify the stack depth for a specific application, update the .htaccess (Linux) or .user.ini (Windows).

    In the .htaccess file (Linux):
php_value zpa.stack_depth 15
    In the .user.ini file (Windows),
zpa.stack_depth = 15
Note: 15 is a default number in the above mentioned commands. You can specify the stack depth required (<30)

                  New to ADSelfService Plus?

                    • Related Articles

                    • PHP Monitor Troubleshooting

                      PHP Monitor Errors and Troubleshooting Guide Check if the phpstats.php file in the webserver's document root. Ensure there is no modifications done in phpstats.php file Check if the correct PHP path is given. Retry with the "SSL is enabled" option ...
                    • How to configure the number of method calls to be tracked in the trace details in PHP applications?

                      The first 1000 methods that exceed the method threshold are tracked by default, after which only the external calls are tracked. You can modify this by changing the zpa.additional_buffer directive in the zpa.ini (Linux) or php.ini (Windows) file. ...
                    • How to deploy the PHP agent in a Kubernetes environment?

                      The PHP agent (only PHP agent version 7.0 and above) can be deployed in a Kubernetes environment using either of the following methods. To avoid using the license key, Application Name, and host in the deployment files, you can also store them in a ...
                    • How to configure Prometheus inside Openshift to scrape necessary metrics for Applications Manager?

                      To setup Prometheus inside a Openshift Cluster and scrape metrics for monitoring the same in Applications Manager, kindly follow the steps given below: Create a new Project "monitor" inside the Desired Cluster to be monitored using the below command. ...
                    • How to upgrade PHP Agent

                      PHP Agent version below 3.2.2 Manual upgrade from user terminal: Whenever a new version of the agent goes live, it will be listed in the APM Insight Download page. The latest agent can also be downloaded from the Applications Manager web client, from ...