Module: Oboe::Inst::ConnectionAdapters::AbstractMysqlAdapter

Includes:
Utils
Defined in:
lib/oboe/frameworks/rails/inst/active_record.rb

Overview

LegacyPostgreSQLAdapter

Class Method Summary collapse

Methods included from Utils

#begin_db_transaction_with_oboe, #cfg, #exec_delete_with_oboe, #exec_insert_with_oboe, #exec_query_with_oboe, #execute_with_oboe, #extract_trace_details, #ignore_payload?

Class Method Details

.included(cls) ⇒ Object



137
138
139
140
141
142
143
144
145
# File 'lib/oboe/frameworks/rails/inst/active_record.rb', line 137

def self.included(cls)
  cls.class_eval do
    if ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter::method_defined? :execute
      alias execute_without_oboe execute
      alias execute execute_with_oboe
    else puts "[oboe/loading] Couldn't properly instrument ActiveRecord layer.  Partial traces may occur."
    end
  end
end