Log in
Model

NewRelicWrapper

Magento\NewRelicReporting\Model\NewRelicWrapper

What it does

This wrapper class provides a safe interface to interact with New Relic's PHP extension for application performance monitoring.

Developers use it to track custom parameters, report errors, name transactions, and inject browser monitoring code.

It includes safety checks to ensure the New Relic extension is installed before calling native functions, preventing fatal errors in environments without New Relic.

Public Methods

  • addCustomParameter()
  • reportError()
  • setAppName()
  • setTransactionName()
  • startBackgroundTransaction()
  • endTransaction()
  • isExtensionInstalled()
  • isAutoInstrumentEnabled()
  • disableAutorum()
  • getBrowserTimingHeader()
  • getBrowserTimingFooter()
  • getCurrentAppName()