Avoid sending 404 exceptions to New Relic?

#284 · closed · 1 comments

View on GitHub ↗

nicodemuz

Is there a way to completely prevent sending of `Symfony\Component\HttpKernel\Exception\NotFoundHttpException` exceptions to New Relic. My website gets lots of junk requests from robots etc, and I would not like to track these. ![Screenshot from 2022-09-06 15-21-17](https://user-images.githubusercontent.com/1620454/188633980-4c6f2c54-538c-4a69-b684-7b0b725aa00f.png)

Comments

nicodemuz

It appears that these exceptions were not sent to New Relic by this bundle, but rather by the PHP agent. I was able to disable this by configuring the agent with: ``` crudini --set /etc/php/8.1/mods-available/newrelic.ini newrelic newrelic.error_collector.ignore_exceptions "Symfony\Component\HttpKernel\Exception\NotFoundHttpException" ```