Module: Appsignal::Hooks::SequelExtension
- Defined in:
- lib/appsignal/hooks/sequel.rb
Instance Method Summary collapse
-
#log_yield(sql, args = nil) ⇒ Object
Add query instrumentation.
Instance Method Details
#log_yield(sql, args = nil) ⇒ Object
Add query instrumentation
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/appsignal/hooks/sequel.rb', line 5 def log_yield(sql, args = nil) # We'd like to get full sql queries in the payloads as well. To do # that we need to find out a way to ask Sequel which quoting strategy # is used by the adapter. We can then do something similar to the AR # formatter. ActiveSupport::Notifications.instrument('sql.sequel') do yield end end |