lib/builder_apm/models/instrumenter.rb in builder_apm-0.3.2 vs lib/builder_apm/models/instrumenter.rb in builder_apm-0.4.0

- old
+ new

@@ -17,10 +17,10 @@ event = ActiveSupport::Notifications::Event.new(*args, data) name = event.payload[:name] return if name == "SCHEMA" || Thread.current[:request_id].nil? triggering_line = determine_triggering_line(caller) - + Thread.current[:db_runtime] += event.duration sql_query_data = build_sql_query_data(event, triggering_line) store_sql_query_data(sql_query_data) end def handle_instantiation_active_record(*args)