#concrete5 #NewRelic Set actual transaction name with concrete5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Add below code into application/bootstrap/app.php | |
* concrete5 version 5.7+ | |
*/ | |
if (function_exists('newrelic_name_transaction')) { | |
$r = Request::getInstance(); | |
newrelic_name_transaction($r->getPathInfo()); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Add below code into config/site_post_autoload.php | |
* concrete5 version -5.6.x | |
*/ | |
if (function_exists('newrelic_name_transaction')) { | |
$r = Request::get(); | |
$path = $r->getRequestCollectionPath(); | |
$path = ($path) ? $path : '/'; | |
newrelic_name_transaction($path); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment