biozahard / yii2-newrelic

Yii2 Newrelic instrumentation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Newrelic instrumentation for Yii 2

This extension describes routes, action params and instruments views with newrelic end user monitoring scripts. Supports console and web applications.

Latest Stable Version Total Downloads Latest Unstable Version License

For license information check the LICENSE-file.

Requirements

Works with newrelic agent with version >=3.0

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist biozahard/yii2-newrelic

or add

"biozahard/yii2-newrelic": "~0.0.1"

to the require section of your composer.json.

Configuration

To use this extension, you have to configure your components & bootstrap section your application configuration:

return [
    'bootstrap' => ['newrelic'],
    'components' => [
        // ...
        'newrelic' => [
            'class' => 'bazilio\yii\newrelic\Newrelic',
            'name' => 'My App Frontend', // optional, uses Yii::$app->name by default
            'handler' => 'class/name', // optional, your custom handler
            'licence' => '...', // optional
            'enabled' => false // optional, default = true
        ]
    ],
];

About

Yii2 Newrelic instrumentation

License:MIT License


Languages

Language:PHP 100.0%