Davillo / laravel-newrelic by davillo

New Relic library for the laravel/lumen frameworks
954
4
2
Package Data
Maintainer Username: davillo
Maintainer Contact: davillo.dev@gmail.com (Davillo Aurélio)
Package Create Date: 2020-08-28
Package Last Update: 2020-08-31
Language: PHP
License: MIT
Last Refreshed: 2024-04-25 15:11:47
Package Statistics
Total Downloads: 954
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 4
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

Requirements

Usage

Installation

Run the following command to install the package through Composer:

composer require davillo/laravel-newrelic

Bootstrapping

This will ensure that exceptions are correctly reported to New Relic. Now, add the middleware too:

$app->middleware([
    ...
   Davillo\NewRelic\NewRelicMiddleware::class
]);

register the service provider:

  $app->register(Davillo\NewRelic\NewRelicServiceProvider::class);

ENV

finally, on the .env of the lumen/laravel app, register two new key-value variables NEWRELIC_APP_NAME='The name of the app on new relic dashboard' NEWRELIC_APP_LICENSE='new relic dashboard key'