59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
# File 'lib/new_relic/agent/instrumentation/active_record_notifications.rb', line 59
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
) do
@lock.synchronize do
yield
end
end
rescue => e
raise translate_exception_class(e, sql)
end
|