Module: Datadog::Tracing::Contrib::Sequel::Patcher

Includes:
Patcher
Defined in:
lib/datadog/tracing/contrib/sequel/patcher.rb

Overview

Patcher enables patching of ‘sequel’ module.

Class Method Summary collapse

Methods included from Patcher

included

Class Method Details

.patchObject



21
22
23
24
# File 'lib/datadog/tracing/contrib/sequel/patcher.rb', line 21

def patch
  patch_sequel_database
  patch_sequel_dataset
end

.patch_sequel_databaseObject



26
27
28
# File 'lib/datadog/tracing/contrib/sequel/patcher.rb', line 26

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

.patch_sequel_datasetObject



30
31
32
# File 'lib/datadog/tracing/contrib/sequel/patcher.rb', line 30

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

.target_versionObject



17
18
19
# File 'lib/datadog/tracing/contrib/sequel/patcher.rb', line 17

def target_version
  Integration.version
end