You are here

public function ExtensionAdapter::recordCustomEvent in New Relic 2.x

Same name and namespace in other branches
  1. 8 src/ExtensionAdapter/ExtensionAdapter.php \Drupal\new_relic_rpm\ExtensionAdapter\ExtensionAdapter::recordCustomEvent()
  2. 2.0.x src/ExtensionAdapter/ExtensionAdapter.php \Drupal\new_relic_rpm\ExtensionAdapter\ExtensionAdapter::recordCustomEvent()

Records a custom event for insights.

Parameters

string $name: Name of the event.

array $attributes: List of attributees for the event. Only scalar types are allowed.

Overrides NewRelicAdapterInterface::recordCustomEvent

File

src/ExtensionAdapter/ExtensionAdapter.php, line 57

Class

ExtensionAdapter
Default new relic adapter.

Namespace

Drupal\new_relic_rpm\ExtensionAdapter

Code

public function recordCustomEvent($name, array $attributes) {
  if (function_exists('newrelic_record_custom_event')) {
    newrelic_record_custom_event($name, $attributes);
  }
}