In our config/newrelic.yml, we have: disable_mongodb: true
In config/initializers/mongo_method_tracers, we have: Rails.configuration.after_initialize do Mongo::Cursor.class_eval do add_method_tracer :refill_via_get_more, 'Database/#{collection.name}/get_more' add_method_tracer :count, 'Database/#{collection.name}/count' end Mongo::Collection.class_eval do add_method_tracer :find_one, 'Database/#{name}/find_one' add_method_tracer :save, 'Database/#{name}/save' add_method_tracer :insert, 'Database/#{name}/insert' add_method_tracer :remove, 'Database/#{name}/remove' add_method_tracer :update, 'Database/#{name}/update' add_method_tracer :find_and_modify, 'Database/#{name}/find_and_modify' add_method_tracer :map_reduce, 'Database/#{name}/map_reduce' add_method_tracer :group, 'Database/#{name}/group' add_method_tracer :distinct, 'Database/#{name}/distinct' add_method_tracer :count, 'Database/#{name}/count' end end In our Mongoid models, we have tracers on frequently used methods: app/models/member.rb 1082: require 'new_relic/agent/method_tracer.rb' 1084: add_method_tracer :next_untaken_quickhit 1085: add_method_tracer :next_unseen_result 1086: add_method_tracer :next_quickhit_participation On Tue, Nov 2, 2010 at 6:53 PM, fbjork <fredrik.bj...@gmail.com> wrote: > Hi guys, > > is anyone using Mongoid and the New Relic addon and successfully > seeing MongoDB transactions? I can get Resque and Redis to work, but > MongoDB doesn't show up. > > I have the following in my Gemfile: > > gem 'rpm_contrib', '1.0.13' > gem 'newrelic_rpm', '2.13.3' > > -- > You received this message because you are subscribed to the Google Groups > "Heroku" group. > To post to this group, send email to her...@googlegroups.com. > To unsubscribe from this group, send email to > heroku+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/heroku?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.