New Relic Warning: The Xdebug extension does not allow the New Relic agent to collect errors. No errors will be logged.

In /var/log/newrelic/php_agent.log on my servers, I see lines like this:

2013-08-30 16:05:01.444 (15615/child) warning: the Xdebug extension prevents the New Relic agent from gathering errors. No errors will be recorded.

However, I still see [at least some] PHP errors in New Relic. What's happening? Is this warning a mistake in the new relic?

I also found this which says:

If you use xdebug, you will have a warning about this. This way you can disable Xdebug or write your own handler and call the New Relic API to correctly report errors in New Relic. For more information, see Kris Weltz Comments.

The words "Kris Weltz" refer to a missing document .

Here is what I installed:

 # rpm -qa | grep relic newrelic-php5-common-3.7.5.7-1.noarch newrelic-php5-3.7.5.7-1.x86_64 newrelic-repo-5-3.noarch newrelic-daemon-3.7.5.7-1.x86_64 newrelic-sysmond-1.2.0.257-1.x86_64 
+6
source share
1 answer

I got help from New Relic support.

Their answer was mainly that Xdebug really conflicts with New Relic, and they should not be used at the same time. Removing the PHP Xdebug extension made the warning go away.

Perhaps you can turn off stack traces in Xdebug and continue to use other Xdebug features, but New Relic support has not commented on this.

+6
source

Source: https://habr.com/ru/post/953096/


All Articles