PHP code example of damejidlo / newrelic
1. Go to this page and download the library: Download damejidlo/newrelic library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
damejidlo / newrelic example snippets
$_ENV['REQUEST_TIME_FLOAT'] = microtime(TRUE);
$container = tByType(\Nette\Application\Application::class)->run();
yaml
extensions:
newrelic: Damejidlo\NewRelic\DI\NewRelicExtension(%consoleMode%)
newrelic:
applicationName: fooBar
applicationModules:
web:
'/api/': Api
'/admin/': Admin
'': Front
console:
'bin/foo.php ': Foo
'': Console
autorum: FALSE
customTracers:
- 'Doctrine\ORM\EntityManager::flush'