Skip to content
This repository has been archived by the owner on Jun 19, 2020. It is now read-only.

damejidlo/newrelic

Repository files navigation

Downloads this Month Latest Stable Version

Install

composer require damejidlo/newrelic

Configure

Register NewRelicExtension in your config:

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'

Put $_ENV settings (something like this) into index.php:

<?php

$_ENV['REQUEST_TIME_FLOAT'] = microtime(TRUE);

$container = require __DIR__ . '/../app/bootstrap.php';

$_ENV['COMPILATION_TIME_FLOAT'] = microtime(TRUE);

$container->getByType(\Nette\Application\Application::class)->run();

About

Integration of basic metrics for Newrelic into Nette.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages