We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bdc9d54 commit faf066eCopy full SHA for faf066e
prometheus/endpoint.php
@@ -10,6 +10,10 @@
10
use Prometheus\Storage\InMemory;
11
12
// @codeCoverageIgnoreStart -- this is a standalone endpoint which doens't run in the context of the WP tests
13
+if ( extension_loaded( 'newrelic' ) ) { // Ensure PHP agent is available
14
+ newrelic_ignore_transaction();
15
+}
16
+
17
require_once __DIR__ . '/vendor/autoload.php';
18
require_once dirname( __DIR__ ) . '/lib/utils/class-context.php';
19
0 commit comments