From 87408fa17d505338e7dc57b9c41466ef18011e71 Mon Sep 17 00:00:00 2001 From: Michael Chan Date: Tue, 6 May 2025 09:12:25 +1000 Subject: [PATCH] Add newrelic_ignore_transaction to ngx-http-concat endpoint --- ngx-http-concat.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ngx-http-concat.php b/ngx-http-concat.php index c9f01fa..71a7a0c 100644 --- a/ngx-http-concat.php +++ b/ngx-http-concat.php @@ -15,6 +15,10 @@ require_once( __DIR__ . '/cssmin/cssmin.php' ); require_once( __DIR__ . '/concat-utils.php' ); +if ( extension_loaded( 'newrelic' ) ) { // Ensure PHP agent is available + newrelic_ignore_transaction(); +} + /* Config */ // Maximum group size is set in WPCOM_Concat_Utils::$concat_max, anything over than that will be spit into multiple groups $concat_unique = true;