dev-master
9999999-dev
MIT
The Requires
slim newrelic
0.1.0
0.1.0.0
MIT
The Requires
slim newrelic
Wallogit.com
2017 © Pedro Peláez
Newrelic implementation for slim framework, (*1)
composer require nicolas-cajelli/slim-newrelic
$config['responseHandlers'] = function(ContainerInterface $c) { return [ $c->get(BadRequestJsonResponseHandler::class), $c->get(NewrelicResponseHandler::class), ]; }; $app->add(NewRelicTransactionMiddleware::class);
If you want to define your own appName + licenseKey:, (*2)
$config['settings'] = [
// ...
'newRelic' => [
'licenseKey' => 'your-license',
'appName' => 'your-app'
]
// ...
];
$config[NewRelicTransactionMiddleware::class] = function(ContainerInterface $c) {
$middleware = new NewRelicTransactionMiddleware($c);
$middleware->addTransactionDecorator(CustomDecorator::class);
$middleware->setTransactionNaming(CustomNamingPolicy::class);
return $middleware;
};
MIT
slim newrelic
MIT
slim newrelic