This bundle integrates the NewRelic PHP API into Symfony2. For more information about NewRelic, please visit http://newrelic.com.
For now the bundle uses the route name as the transaction name on NewRelic.
review http://newrelic.com ...
Use composer.phar
:
$ php composer.phar require ekino/newrelic-bundle
You just have to specify the version you want : master-dev
.
It will add the package in your composer.json
file and install it.
Or you can do it by yourself, first, add the following to your composer.json
file:
// composer.json
{
// ...
require: {
// ...
"ekino/newrelic-bundle": "master-dev"
}
}
Then, you can install the new dependencies by running Composer's update
command from the directory where your composer.json
file is located:
$ php composer.phar update ekino/newrelic-bundle
First, checkout a copy of the code. Just add the following to the deps
file of your Symfony Standard Distribution:
[EkinoNewRelicBundle]
git=http://github.com/ekino/EkinoNewRelicBundle.git
target=/bundles/Ekino/Bundle/NewRelicBundle
Then, run
$ bin/vendors install
Make sure that you also register the namespace with the autoloader:
<?php
// app/autoload.php
$loader->registerNamespaces(array(
// ...
'Ekino' => __DIR__.'/../vendor/bundles',
// ...
));
Then register the bundle with your kernel:
<?php
// in AppKernel::registerBundles()
$bundles = array(
// ...
new Ekino\Bundle\NewRelicBundle\EkinoNewRelicBundle(),
// ...
);
# app/config/config.yml
ekino_new_relic:
// ...
application_name: Awesome Aplication # (mandatory, default value in newrelic is PHP Application)
api_key: # New Relic API