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
- .patch ⇒ Object
- .patch_sequel_database ⇒ Object
- .patch_sequel_dataset ⇒ Object
- .target_version ⇒ Object
Methods included from Patcher
Class Method Details
.patch ⇒ Object
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_database ⇒ Object
26 27 28 |
# File 'lib/datadog/tracing/contrib/sequel/patcher.rb', line 26 def patch_sequel_database ::Sequel::Database.include(Database) end |
.patch_sequel_dataset ⇒ Object
30 31 32 |
# File 'lib/datadog/tracing/contrib/sequel/patcher.rb', line 30 def patch_sequel_dataset ::Sequel::Dataset.include(Dataset) end |
.target_version ⇒ Object
17 18 19 |
# File 'lib/datadog/tracing/contrib/sequel/patcher.rb', line 17 def target_version Integration.version end |