Turning off error collector doesn't work.
Turning off error collector does not work for me. New Relic does not seem to coexist with ExceptionNotifier, causing all my errors to drop on the floor.
I'm on Rails 2.2 final, and I am setting error_collector: enabled: to false.
I'm on Rails 2.2 final, and I am setting error_collector: enabled: to false.
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?Hi Garry,
Would it be possible to email your newrelic.yml and your newrelic agent logs to support@newrelic.com?
Thanks,
Bayard -
Inappropriate?From what I can tell, it looks like new relic always touches rescue_action -- which seems to interfere with ExceptionNotifier.
I just commented out the following and it was kosher again.
rails/errors.rb:
# todo: patch rescue_action and track how many are occuring and capture instances as well
ActionController::Base.class_eval do
def newrelic_notice_error(exception)
local_params = (respond_to? :filter_parameters) ? filter_parameters(params) : params
NewRelic::Agent.agent.error_collector.notice_error(newrelic_metric_path, (request) ? request.path : nil,
local_params, exception)
end
# def rescue_action_with_newrelic_trace(exception)
# newrelic_notice_error exception
#
# rescue_action_without_newrelic_trace exception
# end
# Compare with #alias_method_chain, which is not available in
# Rails 1.1:
# alias_method :rescue_action_without_newrelic_trace, :rescue_action
# alias_method :rescue_action, :rescue_action_with_newrelic_trace
# protected :rescue_action
end if defined? ActionController
-
Inappropriate?Garry, this sounds like a bug. Can you forward this to support@newrelic.com? That will allow you to track progress on the fix, and for us to follow up with some more questions.
Thanks,
Bill
Loading Profile...



EMPLOYEE
EMPLOYEE