Method: NewRelic::Agent::Instrumentation::ActiveRecordSubscriber#finish
- Defined in:
- lib/new_relic/agent/instrumentation/active_record_subscriber.rb
permalink #finish(name, id, payload) ⇒ Object
THREAD_LOCAL_ACCESS
58 59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/new_relic/agent/instrumentation/active_record_subscriber.rb', line 58 def finish(name, id, payload) # THREAD_LOCAL_ACCESS return if cached?(payload) return unless state.is_execution_traced? if segment = pop_segment(id) if exception = exception_object(payload) segment.notice_error(exception) end segment.finish end rescue => e log_notification_error(e, name, 'finish') end |