Our PHP APM will work with Phalcon framework without any limitations. For correct transaction name, you should add the following code in the file app/controllers/ControllerBase.php
in the function, beforeExecuteRoute
.
copy
<?php
//...
class ControllerBase extends Controller
{
public function beforeExecuteRoute(Dispatcher $dispatcher)
{
// TODO Add following code at top of this function
// Set transaction name based on the route.
$moduleName = $dispatcher->getModuleName();
$controllerName = $dispatcher->getControllerName();
$actionName = $dispatcher->getActionName();
if (extension_loaded ('atatus')) {
atatus_set_transaction_name ($moduleName. '/'. $controllerName . '/' . $actionName);
}
//...
}
}