Enabling and disabling distributed tracing in PHP applications

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),
zpa.capture_distributed_trace = 1 

To disable distributed tracing:
In the zpa.ini (Linux) or php.ini (Windows),
zpa.capture_distributed_trace = 0 
 
To enable or disable distributed tracing for a specific application, update the .htaccess (Linux) or .user.ini (Windows).
  1. In the .htaccess (Linux),
    php_value zpa.capture_distributed_trace 1 

  2. In the .user.ini (Windows),
    zpa.capture_distributed_trace = 1