Skip to content

ByINTI/yii2-newrelic

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

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 byinti/yii2-newrelic

or

composer require --prefer-dist byinti/yii2-newrelic

or add

"byinti/yii2-newrelic": "^1.0"

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' => [
            'enableEndUser' => true, // MIND THIS! It is JS instrumentation for end user. Default is true.
            'class' => 'byinti\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
        ]
    ],
];

Packagist Repository

https://packagist.org/packages/byinti/yii2-newrelic

About

Yii2 Newrelic instrumentation

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%