NewRelic module provide an object-oriented PHP wrapper for New Relic monitoring service.
NewRelic module provide a logger and a wrapper for New Relic PHP API.
The current route is used to set the name of each transaction. Moreover, the module allow exceptions logging if enabled.
<?php
return array(
'newrelic' => array(
'application_name' => null,
'license' => null,
'browser_timing_enabled' => false,
'browser_timing_auto_instrument' => true,
'exceptions_logging_enabled' => false,
),
);
<?php
$client = $this->getServiceLocator()->get('NewRelic\Client');
$client->ignoreTransaction();
<?php
$client = $this->getServiceLocator()->get('NewRelic\Client');
$client->backgroundJob(true);
<?php
$client = $this->getServiceLocator()->get('NewRelic\Client');
$client->addCustomMetric('salesprice', $price);