Module: Appsignal::Hooks::SequelLogExtension

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

Instance Method Summary collapse

Instance Method Details

#log_yield(sql, args = nil) ⇒ Object

Add query instrumentation


5
6
7
8
9
10
11
12
# File 'lib/appsignal/hooks/sequel.rb', line 5

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