newrelic/rpm — pull request #66 by mrgordon (2012-05-10 07:44:52+00:00)
Title: Update lib/new_relic/agent/instrumentation/data_mapper.rb

Our project using DataMapper 1.1 does not display any database time on the App Server 'Overview' graph or on the 'Database throughput' and 'Database response time' on the Database page.

Per the comments at the top of data_mapper.rb, this seems to be because the various DataMapper methods need to be instrumented with `:push_scope => false` for 'ActiveRecord/all', 'ActiveRecord/find', etc.

We now have this change in production with our app and we are once again seeing the DataMapper instrumentation that we had with RPM 2.x

I believe similar instrumentation should be added for the DataObjectsAdapter methods as well as lazy_load, but it was less clear to me whether that would double count some time in the graphs so I left that out of this pull request.