abepetrillo / evergreen

Run Jasmine JavaScript unit tests, integrate them into Ruby applications.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

evergreen 1.0.0.rc interacts badly with newrelic_rpm

opened this issue · comments

Tested against newrelic_rpm 3.1.2 and 3.2.0beta1 on Rails 3.1.1. Previous version of evergreen runs great on Rails 3.0.9 and newrelic 3.1.2.

NoMethodError - You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.+:
    /Users/bitfluent/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/newrelic_rpm-3.2.0.beta1/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:364:in `_convert_args_to_path'
    /Users/bitfluent/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/newrelic_rpm-3.2.0.beta1/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:336:in `_push_metric_frame'
    /Users/bitfluent/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/newrelic_rpm-3.2.0.beta1/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:246:in `perform_action_with_newrelic_trace'
    /Users/bitfluent/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/newrelic_rpm-3.2.0.beta1/lib/new_relic/agent/instrumentation/sinatra.rb:51:in `route_eval_with_newrelic'
    /Users/bitfluent/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/sinatra-1.3.1/lib/sinatra/base.rb:772:in `block (2 levels) in route!'

Looks more like the problem is between Sinatra and NewrelicRPM, but do investigate further!

I've narrowed it down to Rack 1.3.x (which Rails 3.1.x requires) and NewRelicRPM.