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).
  1. In the .htaccess file (Linux),
    php_value zpa.stack_depth 15 
  1. In the .user.ini file (Windows),
    zpa.stack_depth = 15 

    • Related Articles

    • How to modify the APM Insight PHP agent's communication port?

      The agent uses ports 20021 and 20022 by default. You can change these ports by modifying the appropriate directive in the zpa.ini file (Linux) or php.ini file (Windows), as well as in the apminsight.conf file (Linux and Windows).   Default ...
    • Reconfigure APM Insight PHP agent during PHP version upgrade

      If you have upgraded your PHP version and face problems in monitoring after the upgrade, here's how you can resolve it.  In general, APM Insight PHP agent registers with the PHP version present in the server at the time of installation.  So when you ...
    • 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). Default ...
    • How to rename an APM Insight application?

      Site24x7 APM Insight doesn't support renaming applications/monitors from the web client. However, the application name of an existing application instance can be renamed in the apminsight.conf file and the agent associated with that instance will ...
    • How to customize instrumentation in PHP agent?

      By default, the following components are tracked: CASSANDRA, CURL, MSSQL, MYSQL, ORACLE, PDO, and POSTGRES. These can be individually enabled or disabled by modifying the corresponding ini directive in the zpa.ini (Linux) or php.ini (Windows). ...