Skip to content

Commit 87408fa

Browse files
committed
Add newrelic_ignore_transaction to ngx-http-concat endpoint
1 parent 8af207b commit 87408fa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ngx-http-concat.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
require_once( __DIR__ . '/cssmin/cssmin.php' );
1616
require_once( __DIR__ . '/concat-utils.php' );
1717

18+
if ( extension_loaded( 'newrelic' ) ) { // Ensure PHP agent is available
19+
newrelic_ignore_transaction();
20+
}
21+
1822
/* Config */
1923
// Maximum group size is set in WPCOM_Concat_Utils::$concat_max, anything over than that will be spit into multiple groups
2024
$concat_unique = true;

0 commit comments

Comments
 (0)