Method: ScoutRailsProxy::Instruments::ActiveRecordInstruments#log_with_scout_instruments
- Defined in:
- lib/scout_rails_proxy/instruments/active_record_instruments.rb
#log_with_scout_instruments(*args, &block) ⇒ Object
self.included
16 17 18 19 20 21 |
# File 'lib/scout_rails_proxy/instruments/active_record_instruments.rb', line 16 def log_with_scout_instruments(*args, &block) sql, name = args self.class.instrument(scout_ar_metric_name(sql,name), :desc => scout_sanitize_sql(sql)) do log_without_scout_instruments(sql, name, &block) end end |