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 identify and resolve conflicts between other APM products and the APM Insight .NET agent

      Problem statement: You are experiencing either of the below issues and suspect that another APM product is interfering with the Site24x7 .NET agent. 1. The .NET monitor is not created under APM > APM Insight > Applications, even after the .NET agent ...
    • Basic troubleshooting tips for the APM Insight Node.js agent

      If you are experiencing issues after installing the APM Insight Node.js agent, follow these troubleshooting tips. Verify agent installation and connectivity To verify the agent installation status, you can execute the following command from the root ...
    • APM Insight integration for Next.js in Kubernetes

      To integrate the Site24x7 APM Insight Next.js agent into your Kubernetes application using initContainers with the prebuilt agent image, follow the steps below: Prerequisites A Next.js application container image The Site24x7 APM Insight license key ...
    • APM Insight AutoProfiler – supported Operating Systems and Agents

      The AutoProfiler feature automatically profiles application performance with minimal manual intervention. This article lists the supported operating systems and APM Insight agents compatible with AutoProfiler. Supported Operating Systems Linux ...
    • OpenTelemetry Licensing

      The OpenTelemetry (OTel) Service license usage applies when traces are stored and indexed in AppLogs. The cost is tied to trace storage, rather than the number of OTel services or monitors created. Suppose you have purchased 100GB of log storage. If ...