diff --git a/README.md b/README.md index 2ccc302..0699bb5 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ newrelic: # optional options with default values rum: - autoEnable: Yes + autoEnabled: Yes transactionTracer: enabled: Yes detail: 1 @@ -44,7 +44,7 @@ newrelic: recordDatabaseErrors: Yes parameters: capture: No - ignored: '' + ignored: [] customParameters: paramName: paramValue ``` diff --git a/src/VrtakCZ/NewRelic/Extension.php b/src/VrtakCZ/NewRelic/Extension.php index 47ee28f..cc01cb0 100644 --- a/src/VrtakCZ/NewRelic/Extension.php +++ b/src/VrtakCZ/NewRelic/Extension.php @@ -20,7 +20,7 @@ class Extension extends \Nette\Config\CompilerExtension \Nette\Diagnostics\Logger::CRITICAL, ), 'rum' => array( - 'autoEnable' => TRUE, + 'autoEnabled' => TRUE, ), 'transactionTracer' => array( 'enabled' => TRUE, @@ -37,7 +37,7 @@ class Extension extends \Nette\Config\CompilerExtension ), 'parameters' => array( 'capture' => FALSE, - 'ignored' => '', + 'ignored' => array(), ), ); @@ -101,7 +101,7 @@ public function afterCompile(ClassType $class) $initialize->addBody('\Nette\Diagnostics\Debugger::$logger = $newRelicLogger;'); // Options - if ($config['rum']['autoEnable']) { + if (!$config['rum']['autoEnabled']) { $initialize->addBody('newrelic_disable_autorum();'); } $initialize->addBody("ini_set('newrelic.transaction_tracer.enabled', ?);", array( @@ -135,7 +135,7 @@ public function afterCompile(ClassType $class) $config['parameters']['capture'], )); $initialize->addBody("ini_set('newrelic.ignored_params', ?);", array( - (string) $config['parameters']['ignored'], + implode(',', $config['parameters']['ignored']), )); }