Sha256: 057ab12cb15c42e85ce6b74db20c9cd2e1c56ba1a669be068c4ca85e7be50af9
Contents?: true
Size: 920 Bytes
Versions: 3
Compression:
Stored size: 920 Bytes
Contents
if defined?(::Sequel) Appsignal.logger.info("Loading Sequel (#{ Sequel::VERSION }) integration") module Appsignal module Integrations module Sequel # Add query instrumentation 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 end # Sequel end # Integrations end # Appsignal # Register the extension... Sequel::Database.register_extension( :appsignal_integration, Appsignal::Integrations::Sequel ) # ... and automatically add it to future instances. Sequel::Database.extension(:appsignal_integration) end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
appsignal-0.12.rc.7 | lib/appsignal/instrumentations/sequel.rb |
appsignal-0.12.rc.6 | lib/appsignal/instrumentations/sequel.rb |
appsignal-0.12.rc.5 | lib/appsignal/instrumentations/sequel.rb |