lib/newrelic-vertica/vertica.rb in newrelic-vertica-0.0.2 vs lib/newrelic-vertica/vertica.rb in newrelic-vertica-0.0.3
- old
+ new
@@ -19,9 +19,10 @@
result = query_without_instrumentation(sql, options, &block)
end
if NewRelic::Agent.is_execution_traced?
NewRelic::Agent.instance.transaction_sampler.notice_sql(sql, nil, duration)
+ NewRelic::Agent.instance.stats_engine.get_stats_no_scope('ActiveRecord/all').trace_call(duration)
end
return result
end
end