ekino / EkinoNewRelicBundle

Add NewRelic support to Symfony

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Avoid sending 404 exceptions to New Relic?

nicodemuz opened this issue · comments

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

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"