interface NewRelicAdapterInterface in New Relic 8
Same name and namespace in other branches
- 2.x src/ExtensionAdapter/NewRelicAdapterInterface.php \Drupal\new_relic_rpm\ExtensionAdapter\NewRelicAdapterInterface
- 2.0.x src/ExtensionAdapter/NewRelicAdapterInterface.php \Drupal\new_relic_rpm\ExtensionAdapter\NewRelicAdapterInterface
New relic API adapter interface.
Hierarchy
- interface \Drupal\new_relic_rpm\ExtensionAdapter\NewRelicAdapterInterface
Expanded class hierarchy of NewRelicAdapterInterface
All classes that implement NewRelicAdapterInterface
5 files declare their use of NewRelicAdapterInterface
- ExceptionSubscriber.php in src/
EventSubscriber/ ExceptionSubscriber.php - NewRelicConfigSubscriber.php in src/
EventSubscriber/ NewRelicConfigSubscriber.php - NewRelicLogger.php in src/
Logger/ NewRelicLogger.php - NewRelicLoggerTest.php in tests/
src/ Unit/ Logger/ NewRelicLoggerTest.php - NewRelicRequestSubscriber.php in src/
EventSubscriber/ NewRelicRequestSubscriber.php
1 string reference to 'NewRelicAdapterInterface'
1 service uses NewRelicAdapterInterface
File
- src/
ExtensionAdapter/ NewRelicAdapterInterface.php, line 8
Namespace
Drupal\new_relic_rpm\ExtensionAdapterView source
interface NewRelicAdapterInterface {
const STATE_IGNORE = 'ignore';
const STATE_BACKGROUND = 'bg';
/**
* Set the new relic transaction state.
*
* @param string $state
* One of the state constants.
*/
public function setTransactionState($state);
/**
* Logs an exception.
*
* @param \Exception $e
* The exception.
*/
public function logException(\Exception $e);
/**
* Logs an error message.
*
* @param string $message
* The error message.
*/
public function logError($message);
/**
* Adds a custom parameter.
*
* @param string $key
* Key that identifies the parameter.
* @param string $value
* Value for the parameter.
*/
public function addCustomParameter($key, $value);
/**
* Set the transaction name.
*
* @param string $name
* Name for this transaction.
*/
public function setTransactionName($name);
/**
* Records a custom event for insights.
*
* @param string $name
* Name of the event.
* @param array $attributes
* List of attributees for the event. Only scalar types are allowed.
*/
public function recordCustomEvent($name, array $attributes);
/**
* Disable automatic injection of the New Relic Browser snippet.
*
* @return mixed
* TRUE if called within newrelic transaction. Otherwise NULL.
*/
public function disableAutorum();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
NewRelicAdapterInterface:: |
public | function | Adds a custom parameter. | 2 |
NewRelicAdapterInterface:: |
public | function | Disable automatic injection of the New Relic Browser snippet. | 2 |
NewRelicAdapterInterface:: |
public | function | Logs an error message. | 2 |
NewRelicAdapterInterface:: |
public | function | Logs an exception. | 2 |
NewRelicAdapterInterface:: |
public | function | Records a custom event for insights. | 2 |
NewRelicAdapterInterface:: |
public | function | Set the transaction name. | 2 |
NewRelicAdapterInterface:: |
public | function | Set the new relic transaction state. | 2 |
NewRelicAdapterInterface:: |
constant | |||
NewRelicAdapterInterface:: |
constant |