Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Newrelic developermode not working with ruby-prof

I'm using the newrelic_rpm developer mode locally in a rails 3.2 app. This is working fine.

When I install ruby-prof and click "start profiling" in the newrelic local dashboard and go back to my app, every page in my app gives "undefined method `pop' for #.

The top few lines of the traceback:

newrelic_rpm (3.6.4.122) lib/new_relic/agent/instrumentation/controller_instrumentation.rb:421:in `ensure in perform_action_with_newrelic_profile'
newrelic_rpm (3.6.4.122) lib/new_relic/agent/instrumentation/controller_instrumentation.rb:421:in `perform_action_with_newrelic_profile'
newrelic_rpm (3.6.4.122) lib/new_relic/agent/instrumentation/controller_instrumentation.rb:305:in `perform_action_with_newrelic_trace'
newrelic_rpm (3.6.4.122) lib/new_relic/agent/instrumentation/rails3/action_controller.rb:37:in `process_action'
actionpack (3.2.13) lib/abstract_controller/base.rb:121:in `process'

Any ideas how to work out what's going wrong?

like image 790
Tim Diggins Avatar asked Jun 19 '13 15:06

Tim Diggins


2 Answers

Dropped back to version 3.5.8.72 and it worked again. Just update your Gemfile with gem "newrelic_rpm", "3.5.8.72". I've logged an issue with them on it.

like image 163
jonathannen Avatar answered Nov 17 '22 04:11

jonathannen


I know it's been a while, but we've fixed the issue that was preventing ruby-prof from working in developer mode previously, so you should now be able to use it again with recent versions of the agent (3.7.3 and later). I'll get that known issues page updated also.

like image 3
grumbler Avatar answered Nov 17 '22 04:11

grumbler