byinti/yii2-newrelic 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

byinti/yii2-newrelic

最新稳定版本:1.1

Composer 安装命令:

composer require byinti/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 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

统计信息

  • 总下载量: 13.75k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 13
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-01-03