# File lib/new_relic/agent/instrumentation/data_mapper.rb, line 183 def log(msg) #THREAD_LOCAL_ACCESS state = NewRelic::Agent::TransactionState.tl_get return unless state.is_execution_traced? duration = msg.duration / 1000000.0 NewRelic::Agent.instance.transaction_sampler.notice_sql(msg.query, nil, duration, state) ensure super end