Please share your agent version and other relevant versions below:
NewRelic agent version: 126.96.36.199
Please share your question/describe your issue below. Include any screenshots that may help us understand your question:
Our framework (Zend Framework) will catch exceptions thrown during service creation. And then throw new a new Exception (of a different type), with the caught exception as previous exception.
NewRelic only shows the last exception. For example, we can only see the following error information:
Zend\ServiceManager\Exception\ServiceNotCreatedException: Uncaught exception 'Zend\ServiceManager\Exception\ServiceNotCreatedException' with message 'An exception was raised while creating "Zend\Mvc\View\Http\DefaultRenderingStrategy"; no instance returned' in /vendor/zendframework/zend-servicemanager/src/ServiceManager.php:941
And we cannot trace the actual error, and it’s own stack trace.
Is it possible to show these previous exceptions?
On my site, I have a set of URLs for Google AMP equivalent pages for my blog posts. The New Relic APM PHP Agent is automatically adding a script tag to every page. However, this is not allowed on AMP pages.
How can I prevent the agent from adding the script to specific urls on my site?
New Relic edit
- I want this, too
- I have more info to share (reply below)
- I have a solution for this
We take feature ideas seriously and our product managers review every one when plotting their roadmaps. However, there is no guarantee this feature will be implemented. This post ensures the idea is put on the table and discussed though. So please vote and share your extra details with our team.