Sha256: be5859c47d160b8bb9176cc377683f17740304b0a28ef447d64d782f8b992800

Contents?: true

Size: 691 Bytes

Versions: 5

Compression:

Stored size: 691 Bytes

Contents

# typed: true
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

5 entries across 5 versions & 1 rubygems

Version Path
ddtrace-0.54.2 lib/ddtrace/contrib/sequel/patcher.rb
ddtrace-0.54.1 lib/ddtrace/contrib/sequel/patcher.rb
ddtrace-0.54.0 lib/ddtrace/contrib/sequel/patcher.rb
ddtrace-0.53.0 lib/ddtrace/contrib/sequel/patcher.rb
ddtrace-0.52.0 lib/ddtrace/contrib/sequel/patcher.rb