vgorla/newrelic-magento2-monolog-handler

New Relic Magento 2 Monolog Handler

1.0.0 2021-09-15 12:34 UTC

This package is auto-updated.

Last update: 2024-04-15 18:17:59 UTC


README

This is an extension of NewRelic PHP Monolog Enricher to Push Magento 2 Logs to New Relic Logs API.

This extension on its own just implements Handler Class, Processor Class is implemented by vgorla/newrelic-magento2-monolog-processor which can be installed indepdently without Handler if you have any existing log forwarders to send logs to New Relic. Processor extension is infact added as a dependany to this module to exploit logs in context functionality of New Relic logs.

Installation

Using Composer :

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

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