Thomas Lomas

Software Engineer / Web Developer (Charlotte, NC, USA / Remote) / GitHub / LinkedIn

Ignore New Relic Page Transaction

NewRelic will, by default, log every page request as a transaction. This can lead to skewed results on pages that have long running requests, such as crons.

To stop New Relic logging that transaction, simply place the following code on the action / top of the PHP file:

if (extension_loaded('newrelic')) {