This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if defined? ::NewRelic | |
module Mongoid | |
class Collection | |
(%w(find find_one map_reduce) + Collections::Operations::PROXIED - ['<<']).uniq.each do |method| | |
add_method_tracer method, "MongoDB/\#{@klass}##{method}" | |
end | |
end | |
end | |
end |