# File lib/new_relic/agent/instrumentation/active_record_subscriber.rb, line 33 def finish(name, id, payload) #THREAD_LOCAL_ACCESS return if payload[:name] == CACHED_QUERY_NAME return unless state.is_execution_traced? event = pop_event(id) event.finish rescue => e log_notification_error(e, name, 'finish') end