neeckeloo / newrelic Goto Github PK
View Code? Open in Web Editor NEWNewRelic module for Laminas
License: MIT License
NewRelic module for Laminas
License: MIT License
There is a bug enabling strict types:
ini_set() expects parameter 2 to be string, bool given
You should check these types and covert them to strings
Wouldnt it be better to send the real URL as a name instead of the called route? If hou have dynamic routes and you want to analyse with specific paramters you cant see which parameters have a huge load time or throughput or smth. You only see the route.
Nice Module!
Hi,
I would like to use the lib with a ZF2.3.9 application. Is there any way?
Thanks,
Ingmar
It would be cool if the library also could push to the Insights collector.
It's pretty obvious, but you might want to add into the readme that you need to add 'NewRelic'
to the application.config.php
modules
array.
When using console request the route can be a invalid transaction name
This can lead to different controllers/action but in new relic will only show "do-stuff" on the transaction name
I´m using
$this->getServiceLocator()
->get('NewRelic\Client')
->nameTransaction('/console/[controller]/[action]');
And since is a ConsoleRequest, can it be automatically set as a background job?
Uncaught TypeError: Argument 1 passed to NewRelic\Listener\ErrorListener::createLogMessageFromException() must be an instance of Exception, instance of Error given, called in /var/www/www/vendor/neeckeloo/newrelic/src/Listener/ErrorListener.php on line 56 and defined in /var/www/www/vendor/neeckeloo/newrelic/src/Listener/ErrorListener.php:61
private function createLogMessageFromException(\Throwable $exception)
{
return $exception->getFile()
. ":" . $exception->getLine()
. ": " . $exception->getMessage();
}
Should fix the error!
include module name on ignore list
return array(
'newrelic' => array(
'ignored_transactions' => array(
'module' => array(
'Foo',
'Bar',
'Baz',
),
),
),
);
and optionally with controller/action
return array(
'newrelic' => array(
'ignored_transactions' => array(
'module' => array(
array('Foo', array('FooController', 'BarController')),
array('Bar', array( array('BazController', array('foo', 'bar')))),
'Baz',
),
),
),
);
allow chaining method on NewRelic\Client functions to use like
$client = $this->getServiceLocator()->get('NewRelic\Client');
$client->backgroundJob(true)->nameTransaction('my_name');
e.g.
/**
* {@inheritdoc}
*/
public function nameTransaction($name)
{
if (!$this->extensionLoaded()) {
return;
}
newrelic_name_transaction($name);
return $this;
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.