Syntax
newrelic_capture_params([bool $enable_flag])Enable or disable the capture of URL parameters.
Requirements
Compatible with all agent versions.
Description
Enable or disable the capture of URL parameters (everything after the ? in the URL). This overrides the newrelic.capture_params config file setting.
Important
If you pass sensitive information directly in the URL, keep this disabled.
Parameters
Parameter  | Description  | 
|---|---|
 boolean  | Optional. Defaults to  If  If   | 
Examples
Enable capture of URL parameters
function example() {    if (extension_loaded('newrelic')) { // Ensure PHP agent is available        newrelic_capture_params();    }    //...}Disable capture of URL parameters
function example() {    if (extension_loaded('newrelic')) { // Ensure PHP agent is available        newrelic_capture_params(false);    }    //...}