This documentation is deprecated. Please refer our new documentation here

Phalcon Integration

Our PHP APM will work with Phalcon framework without any limitation. For correct transaction name, you should add the following code in the file app/controllers/ControllerBase.php under function beforeExecuteRoute

<?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);
        }

        //...

    }
}