Skip to content

Improve/ignore platform required paths in new relic #6279

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions prometheus/endpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
use Prometheus\Storage\InMemory;

// @codeCoverageIgnoreStart -- this is a standalone endpoint which doens't run in the context of the WP tests
if ( extension_loaded( 'newrelic' ) ) { // Ensure PHP agent is available
newrelic_ignore_transaction();
}

require_once __DIR__ . '/vendor/autoload.php';
require_once dirname( __DIR__ ) . '/lib/utils/class-context.php';

Expand Down
Loading