Upgrade to Rails 2.2.2
I just upgraded to rails 2.2.2 and am getting the following error when I call newrelic_ignore from my controllers:
...../app/controllers/test_controller.rb:2:NoMethodError: undefined method `newrelic_ignore' for TestController:Class
Any ideas? Thanks
...../app/controllers/test_controller.rb:2:NoMethodError: undefined method `newrelic_ignore' for TestController:Class
Any ideas? Thanks
1
person has this problem
I have this problem, too!
Tell me when someone solves it.
The more people who report this problem, the more it gets noticed.
The more people who report this problem, the more it gets noticed.
The company thinks this is not a problem.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?Just some more info, if I put this at the top of my controller it seems to work:
def self.newrelic_ignore(specifiers={})
if specifiers.empty?
write_inheritable_attribute('do_not_trace', true)
elsif ! (Hash === specifiers)
logger.error "newrelic_ignore takes an optional hash with :only and :except lists of actions (illegal argument type '#{specifiers.class}')"
else
write_inheritable_attribute('do_not_trace', specifiers)
end
end
However, (and maybe I'm just being dumb here), if I put this in a module and include it it doesn't work. -
Inappropriate?Hi Dennis,
Sorry to see you are having troulbe with RPM and Rails 2.2.2, and further apologies that we haven't gotten back to you sooner. We are investigating and hope to have some answers for you early next week. Cheers,
-Lew -
Inappropriate?Lew,
I found a work around. It might be a plugin or something causing some issue. (Or I'm doing some monkey patching on different stuff, so that might be causing it also) I'll let you know if I figure out anything else. -
Inappropriate?Dennis thanks for giving us the update through support@newrelic.com. I understand this was a configuration issue in your application. Please let us know if we can be of any further assistance.
The company says
this solves the problem
Loading Profile...



EMPLOYEE
EMPLOYEE