class ExtensionAdapter in New Relic 8
Same name and namespace in other branches
- 2.x src/ExtensionAdapter/ExtensionAdapter.php \Drupal\new_relic_rpm\ExtensionAdapter\ExtensionAdapter
- 2.0.x src/ExtensionAdapter/ExtensionAdapter.php \Drupal\new_relic_rpm\ExtensionAdapter\ExtensionAdapter
Default new relic adapter.
Hierarchy
- class \Drupal\new_relic_rpm\ExtensionAdapter\ExtensionAdapter implements NewRelicAdapterInterface
Expanded class hierarchy of ExtensionAdapter
File
- src/
ExtensionAdapter/ ExtensionAdapter.php, line 8
Namespace
Drupal\new_relic_rpm\ExtensionAdapterView source
class ExtensionAdapter implements NewRelicAdapterInterface {
/**
* {@inheritdoc}
*/
public function setTransactionState($state) {
switch ($state) {
case static::STATE_BACKGROUND:
newrelic_background_job(TRUE);
break;
case static::STATE_IGNORE:
newrelic_ignore_transaction(TRUE);
break;
}
}
/**
* {@inheritdoc}
*/
public function logException(\Exception $e) {
newrelic_notice_error($e);
}
/**
* {@inheritdoc}
*/
public function logError($message) {
newrelic_notice_error($message);
}
/**
* {@inheritdoc}
*/
public function addCustomParameter($key, $value) {
newrelic_add_custom_parameter($key, $value);
}
/**
* {@inheritdoc}
*/
public function setTransactionName($name) {
newrelic_name_transaction($name);
}
/**
* {@inheritdoc}
*/
public function recordCustomEvent($name, array $attributes) {
if (function_exists('newrelic_record_custom_event')) {
newrelic_record_custom_event($name, $attributes);
}
}
/**
* {@inheritdoc}
*/
public function disableAutorum() {
return newrelic_disable_autorum();
}
}