Module: Tire::Model::NewRelic
- Defined in:
- lib/tire/new_relic/model.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/tire/new_relic/model.rb', line 6 def self.included(base) base.class_eval do ::NewRelic::Agent.logger.debug "Installing NewRelic instrumentation for #{self}" include ::NewRelic::Agent::MethodTracer add_method_tracer :update_index, 'Search/#{self.class.name}/update_index' class << self include ::NewRelic::Agent::MethodTracer add_method_tracer :search, 'Search/#{self}/search' end end end |