Module: Appsignal::Hooks::SequelLogConnectionExtension

Defined in:
lib/appsignal/hooks/sequel.rb

Instance Method Summary collapse

Instance Method Details

#log_connection_yield(sql, conn, args = nil) ⇒ Object

Add query instrumentation


17
18
19
20
21
22
23
24
# File 'lib/appsignal/hooks/sequel.rb', line 17

def log_connection_yield(sql, conn, args = nil)
  ActiveSupport::Notifications.instrument(
    'sql.sequel',
    :sql => sql
  ) do
    yield
  end
end