| Module | NewRelic::Agent::Instrumentation::DataMapperInstrumentation |
| In: |
lib/new_relic/agent/instrumentation/data_mapper.rb
|
Unlike in AR, log is called in DM after the query actually ran, complete with metrics. Since DO has already calculated the duration, there‘s nothing more to measure, so just record and log.
We rely on the assumption that all possible entry points have been hooked with tracers, ensuring that notice_sql attaches this SQL to the proper call scope.