lib/newrelic-vertica/vertica.rb in newrelic-vertica-0.0.3 vs lib/newrelic-vertica/vertica.rb in newrelic-vertica-0.0.4
- old
+ new
@@ -17,10 +17,10 @@
result = nil
duration = Benchmark.realtime do
result = query_without_instrumentation(sql, options, &block)
end
- if NewRelic::Agent.is_execution_traced?
+ if NewRelic::Agent.tl_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