You are here

class NullAdapter in New Relic 8

Same name and namespace in other branches
  1. 2.x src/ExtensionAdapter/NullAdapter.php \Drupal\new_relic_rpm\ExtensionAdapter\NullAdapter
  2. 2.0.x src/ExtensionAdapter/NullAdapter.php \Drupal\new_relic_rpm\ExtensionAdapter\NullAdapter

Default new relic adapter.

Hierarchy

Expanded class hierarchy of NullAdapter

File

src/ExtensionAdapter/NullAdapter.php, line 8

Namespace

Drupal\new_relic_rpm\ExtensionAdapter
View source
class NullAdapter implements NewRelicAdapterInterface {

  /**
   * {@inheritdoc}
   */
  public function setTransactionState($state) {
  }

  /**
   * {@inheritdoc}
   */
  public function logException(\Exception $e) {
  }

  /**
   * {@inheritdoc}
   */
  public function logError($message) {
  }

  /**
   * {@inheritdoc}
   */
  public function addCustomParameter($key, $value) {
  }

  /**
   * {@inheritdoc}
   */
  public function setTransactionName($name) {
  }

  /**
   * {@inheritdoc}
   */
  public function recordCustomEvent($name, array $attributes) {
  }

  /**
   * {@inheritdoc}
   */
  public function disableAutorum() {
    return NULL;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
NewRelicAdapterInterface::STATE_BACKGROUND constant
NewRelicAdapterInterface::STATE_IGNORE constant
NullAdapter::addCustomParameter public function Adds a custom parameter. Overrides NewRelicAdapterInterface::addCustomParameter
NullAdapter::disableAutorum public function Disable automatic injection of the New Relic Browser snippet. Overrides NewRelicAdapterInterface::disableAutorum
NullAdapter::logError public function Logs an error message. Overrides NewRelicAdapterInterface::logError
NullAdapter::logException public function Logs an exception. Overrides NewRelicAdapterInterface::logException
NullAdapter::recordCustomEvent public function Records a custom event for insights. Overrides NewRelicAdapterInterface::recordCustomEvent
NullAdapter::setTransactionName public function Set the transaction name. Overrides NewRelicAdapterInterface::setTransactionName
NullAdapter::setTransactionState public function Set the new relic transaction state. Overrides NewRelicAdapterInterface::setTransactionState