Sha256: 0ef1e5962bc82c4a3e184a9f277929011226dbb6f695c2b11725cb2d56e65354

Contents?: true

Size: 522 Bytes

Versions: 3

Compression:

Stored size: 522 Bytes

Contents

require 'ddtrace/contrib/patcher'
require 'ddtrace/contrib/mysql2/instrumentation'

module Datadog
  module Contrib
    module Mysql2
      # Patcher enables patching of 'mysql2' module.
      module Patcher
        include Contrib::Patcher

        module_function

        def target_version
          Integration.version
        end

        def patch
          patch_mysql2_client
        end

        def patch_mysql2_client
          ::Mysql2::Client.include(Instrumentation)
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ddtrace-0.51.1 lib/ddtrace/contrib/mysql2/patcher.rb
ddtrace-0.51.0 lib/ddtrace/contrib/mysql2/patcher.rb
ddtrace-0.50.0 lib/ddtrace/contrib/mysql2/patcher.rb