Module: Appsignal::Hooks::SequelLogExtension Private
- Defined in:
 - lib/appsignal/hooks/sequel.rb
 
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- 
  
    
      #log_yield(sql, args = nil)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  private
  
    
Add query instrumentation.
 
Instance Method Details
#log_yield(sql, args = nil) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Add query instrumentation
      8 9 10 11 12 13 14 15 16 17  | 
    
      # File 'lib/appsignal/hooks/sequel.rb', line 8 def log_yield(sql, args = nil) Appsignal.instrument( "sql.sequel", nil, sql, Appsignal::EventFormatter::SQL_BODY_FORMAT ) do super end end  |