module Datadog::Contrib::Mysql2::Patcher

Patcher enables patching of 'mysql2' module.

Public Instance Methods

patch() click to toggle source
# File lib/ddtrace/contrib/mysql2/patcher.rb, line 17
def patch
  patch_mysql2_client
end
patch_mysql2_client() click to toggle source
# File lib/ddtrace/contrib/mysql2/patcher.rb, line 21
def patch_mysql2_client
  ::Mysql2::Client.send(:include, Instrumentation)
end
target_version() click to toggle source
# File lib/ddtrace/contrib/mysql2/patcher.rb, line 13
def target_version
  Integration.version
end