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

    • 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 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 ...
    • 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 ...
    • APM Insight agent log paths

      Folder path to view One agent logs One agent logs can be found only in the common application folder in Windows (usually under C:\ProgramData from Vista onwards). Check the following folder path in Windows: C:\ProgramData\Site24x7APMOneAgent\Logs ...
    • How to enable and disable distributed tracing in PHP applications?

      To enable distributed tracing, set the "zpa.capture distributed trace" directive to "1" in the zpa.ini (Linux) or php.ini (Windows). Similarly, to disable, set to "0."   To enable distributed tracing: In the zpa.ini (Linux) or php.ini (Windows), ...