burak-vademecum/yii2-newrelic
最新稳定版本:v1.0.0
Composer 安装命令:
composer require burak-vademecum/yii2-newrelic
包简介
Newrelic integration for Yii2
README 文档
README
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 bazilio/yii2-newrelic
or add
"bazilio/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' => '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 ] ], ];
统计信息
- 总下载量: 1.22k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-11-07