Sha256: b7a476a65d700ea7fa05fcf61a93cc3dcfdc825940d72ebb1537a772955afe69

Contents?: true

Size: 677 Bytes

Versions: 3

Compression:

Stored size: 677 Bytes

Contents

require 'ddtrace/contrib/patcher'
require 'ddtrace/contrib/sequel/database'
require 'ddtrace/contrib/sequel/dataset'

module Datadog
  module Contrib
    module Sequel
      # Patcher enables patching of 'sequel' module.
      module Patcher
        include Contrib::Patcher

        module_function

        def target_version
          Integration.version
        end

        def patch
          patch_sequel_database
          patch_sequel_dataset
        end

        def patch_sequel_database
          ::Sequel::Database.include(Database)
        end

        def patch_sequel_dataset
          ::Sequel::Dataset.include(Dataset)
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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