module NewRelic::Agent::Instrumentation::ActiveRecordNotifications::BaseExtensions50
Public Instance Methods
Source
# File lib/new_relic/agent/instrumentation/active_record_notifications.rb, line 41 def log(sql, name = 'SQL', binds = [], type_casted_binds = [], statement_name = nil) @instrumenter.instrument( SQL_ACTIVE_RECORD, sql: sql, name: name, binds: binds, type_casted_binds: type_casted_binds, statement_name: statement_name, connection_id: object_id, connection: self ) { yield } rescue => e raise translate_exception_class(e, sql) end