예제 #1
0
 /**
  * Inserts New Relic "Real User Monitoring" footer script when called.
  *
  * Should be placed right before </body>
  *
  * @param bool $includeScriptTag
  * @return mixed
  */
 public function footer($includeScriptTag = true)
 {
     return NewrelicCore::get_browser_timing_footer($includeScriptTag);
 }
예제 #2
0
<?php

namespace li3_newrelic\config;

use lithium\core\Libraries;
use lithium\action\Dispatcher;
use lithium\core\Environment;
use li3_newrelic\extensions\Newrelic;
/**
 * Main filter to add newrelic transaction for each request.
 */
Dispatcher::applyFilter('_callable', function ($self, $params, $chain) {
    $controller = $chain->next($self, $params, $chain);
    Newrelic::filterDispatcher($controller, $params);
    return $controller;
});