Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
NewRelicWrapper.php
Go to the documentation of this file.
1 <?php
7 
14 {
22  public function addCustomParameter($param, $value)
23  {
24  if (extension_loaded('newrelic')) {
25  newrelic_add_custom_parameter($param, $value);
26  return true;
27  }
28  return false;
29  }
30 
37  public function reportError($exception)
38  {
39  if (extension_loaded('newrelic')) {
40  newrelic_notice_error($exception->getMessage(), $exception);
41  }
42  }
43 
50  public function setAppName(string $appName)
51  {
52  if (extension_loaded('newrelic')) {
53  newrelic_set_appname($appName);
54  }
55  }
56 
62  public function isExtensionInstalled()
63  {
64  if (extension_loaded('newrelic')) {
65  return true;
66  }
67  return false;
68  }
69 }
$value
Definition: gender.phtml:16