Download the PHP package blueweb/newrelic-nette without Composer
On this page you can find all versions of the php package blueweb/newrelic-nette. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package newrelic-nette
New Relic integration for Nette Framework
Repository https://github.com/blueweb/newrelic-nette.
Requirements
Library blueweb/newrelic-nette requires PHP 7.4 or higher.
Installation
The best way to install blueweb/newrelic-nette is using Composer:
You have to also add this to your config.neon:
Extension is automatically disabled in development environment. You can also manually enable/disable the extension:
enable covers transaction naming and error reporting. The features below are
configured independently of it.
Custom parameters
Blueweb\NewRelic\NewRelic is registered as an autowired service and is the
way to put custom parameters on the current transaction:
Parameters are sent right away. They are kept in memory as well, so the service
also works without the newrelic extension - nothing is sent, but the values
can still be inspected (see the Tracy panel below).
For values known only at the end of the transaction there is a provider, which
is evaluated in register_shutdown_function(), i.e. while the transaction is
still open:
Query statistics
When dibi/dibi is installed and a Dibi\Connection service exists, queries
are counted automatically and sent as db.queryCount, db.queryTime (ms),
db.select, db.insert, db.update, db.delete, db.transaction,
db.connect and db.other.
Note that listening on Dibi\Connection::$onEvent makes dibi build a
Dibi\Event for every query, including a debug_backtrace() call - a small
but non-zero cost per query. Turn the statistics off with queryStats: false.
Tracy panel
In development a bar panel lists all custom parameters that would be sent to New Relic, together with the information whether the extension is loaded at all. It renders the deferred provider values too.
All versions of newrelic-nette with dependencies
nette/application Version ~3.0
nette/di Version ~3.0
nette/schema Version ~1.0