Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New Relic warning: the Xdebug extension prevents the New Relic agent from gathering errors. No errors will be recorded

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.

Yet, I still see [at least some] PHP errors in New Relic. What's going on? Is this warning a bug in New Relic?

I also found this which says:

If you are using xdebug, you will have a warning about this. So you could turn off Xdebug , or write your own handler and call New Relic API to allow errors report into New Relic properly. See the comments of Kris Weltz for more information.

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

Here's what I've got 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
like image 663
Adam Monsen Avatar asked Sep 03 '13 23:09

Adam Monsen


1 Answers

I got help from New Relic support.

Their response was basically that Xdebug indeed conflicts with New Relic, and they should not be used simultaneously. Uninstalling the Xdebug PHP extension made the warning go away.

It may be possible to disable stack traces in Xdebug and continue to use other Xdebug features, but New Relic support didn't comment on this.

like image 113
Adam Monsen Avatar answered Nov 20 '22 22:11

Adam Monsen