Enable or disable error tracking in the APM Insight PHP agent

How to enable or disable error tracking in the PHP agent?


To enable error tracking, set the zpa.track_errors ini directive to 1. Similarly, to disable it, set it to 0.
 
To enable error tracking:
zpa.track_errors=1 

To disable error tracking:
zpa.track_errors=0

Refer to this document on how to modify the PHP agent configurations.

Track errors based on their severity

This is only applicable to the agent versions 4.2 and above.
Based on their severity, errors are classified as follows:
  1. Notice: E_NOTICE, E_USER_NOTICE, E_STRICT, E_DEPRECATED, E_USER_DEPRECATED 
  2. Warning: E_WARNING, E_CORE_WARNING, E_COMPILE_WARNING, E_USER_WARNING
  3. Error: E_ERROR, E_PARSE, E_CORE_ERROR, E_COMPILE_ERROR, E_USER_ERROR, E_RECOVERABLE_ERROR 
To track Notices, Warnings, and Errors:
zpa.track_errors=1
To track Warnings and Errors:
zpa.track_errors=2
To track only Errors:
zpa.track_errors=3

    • Related Articles

    • How to enable or disable exception tracking in the PHP agent?

      To enable exception tracking, set the "zpa.track_exceptions" directive to "1" in the zpa.ini (Linux) or php.ini (Windows). Similarly, to disable, set to "0." To enable error tracking: zpa.track_exceptions = 1 To disable error tracking: ...
    • How to enable or disable method tracking in the PHP agent?

      To enable method tracking, set the "zpa.track_zend_execute" and "zpa.track_zend_execute_internal" directive to "1" in the zpa.ini (Linux) or php.ini (Windows). Similarly, to disable, set to "0." To enable method tracking: Internal (built-in) ...
    • 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 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). ...
    • 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 ...