Customize instrumentation in PHP agent

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).

Configuration to enable components tracking:
In the zpa.ini (Linux) or php.ini (Windows),
zpa.capture_casssandra = 1 
zpa.capture_http = 1 
zpa.capture_mssql = 1 
zpa.capture_mysql = 1 
zpa.capture_oracle = 1 
zpa.capture_pdo = 1 
zpa.capture_postgres = 1 
Configuration to disable components tracking:
In the zpa.ini (Linux) or php.ini (Windows),
zpa.capture_casssandra = 0 
zpa.capture_http = 0 
zpa.capture_mssql = 0 
zpa.capture_mysql = 0 
zpa.capture_oracle = 0 
zpa.capture_pdo = 0 
zpa.capture_postgres = 0 
    • 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 ...
    • Customize URL names using PHP agent API

      With APM Insight PHP agent, you can customize URL names for your web transactions.  Here's how you can do it: Open the PHP script of the transaction for which you want to customize the URL. Add the following snippet in any part of the PHP script ...
    • 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), ...
    • 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 ...