定制 vgorla/newrelic-magento2-monolog-processor 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

vgorla/newrelic-magento2-monolog-processor

Composer 安装命令:

composer require vgorla/newrelic-magento2-monolog-processor

包简介

New Relic Magento 2 Monolog Processor

README 文档

README

This is an extension of NewRelic PHP Monolog Enricher to add in context logging capabilities for Magento 2.

This only implements Processor Class to add the contextual metadata required for New Relic logs in context to operate.

Handler class is not implemented on purpose to prevent additional overhead to transactions and not wait to send logs to New Relic logs API endpoint, you can continue to use any existing log forwarders to send logs to New Relic.

If you dont have any existing log forwarders and can afford overhead to sychronously push logs to New Relic (or to use handler on non production environments where you can afford latency), use the handler extension available here vgorla/newrelic-magento2-monolog-handler which will automatically install processor (this extension) if you use composer based on the declared dependacy.

Installation

Using Composer :

$ composer require vgorla/newrelic-magento2-monolog-processor

Enable Distributed Tracing :

Enable Distributed Tracing in your New Relic Configuration file (normally newrelic.ini), enabling infinite tracing is not mandatory for in context logs to work.

newrelic.distributed_tracing_enabled = true
newrelic.span_events_enabled = true

Read more about New Relic logs in context here : New Relic PHP: Configure logs in context

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: unlicense
  • 更新时间: 2021-09-14