Download the PHP package neeckeloo/newrelic without Composer
On this page you can find all versions of the php package neeckeloo/newrelic. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download neeckeloo/newrelic
More information about neeckeloo/newrelic
Files in neeckeloo/newrelic
Package newrelic
Short Description NewRelic module for Laminas
License MIT
Homepage https://github.com/neeckeloo/NewRelic
Informations about the package newrelic
NewRelic module for Laminas
NewRelic module provide an object-oriented PHP wrapper for New Relic monitoring service.
Introduction
NewRelic module provide a logger and a wrapper for New Relic PHP API.
The current route is used to set the name of each transaction. Moreover, the module allow exceptions logging if enabled.
Requirements
- PHP ^7.2
- Laminas
Installation
NewRelic module only officially supports installation through Composer. For Composer documentation, please refer to getcomposer.org.
You can install the module from command line:
Alternatively, you can also add manually the dependency in your composer.json
file:
Enable the module by adding NewRelic
key to your application.config.php
file. Customize the module by copy-pasting
the newrelic.global.php.dist
file to your config/autoload
folder.
Default configuration
Usage
Define transaction name
The module use NewRelic\Listener\RequestListener
to specify the transaction name automatically using matched route name by default.
Transaction name providers
The transaction name is retrieved from a provider (NewRelic\TransactionNameProvider\RouteNameProvider
by default) defined in the configuration.
The package contains some providers:
- RouteNameProvider
- HttpRequestUrlProvider
- NullProvider
Specify transaction name manually
You can also defined the transaction name yourself by defining NullProvider
as transaction name provider and using nameTransaction
method of the client.
Ignore transactions
NewRelic API allows to ignore some transactions. This configuration defines some routes and controllers of transactions that will be ignored.
Ignore routes
Those rules ignore all admin routes and the "user/login" route.
Ignore controllers
You can also ignore some actions of specified controllers :
Ignore a transaction manually
You can ignore a transaction manually by calling method of NewRelic client.
Define background jobs
The configuration of background jobs is identical to ignored transactions but use the key as below.
Define a background job manually
You can define a transaction as background job manually by calling method of NewRelic client.
Ignore apdex metrics
You can ignore apdex metrics like transaction metrics using the key .
Ignore apdex metrics manually
You can ignore apdex metrics manually by calling method of NewRelic client.
Add custom metric
All versions of newrelic with dependencies
psr/container Version 1.0
monolog/monolog Version ^1.17 || ^2.0
laminas/laminas-console Version ^2.6
laminas/laminas-eventmanager Version ^2.6 || ^3.0
laminas/laminas-servicemanager Version ^2.7 || ^3.0
laminas/laminas-http Version ^2.5
laminas/laminas-mvc Version ^2.7 || ^3.0
laminas/laminas-stdlib Version ^3.2.1