Module: Datadog::Tracing::Contrib::Mysql2::Patcher
- Includes:
- Patcher
- Defined in:
- lib/datadog/tracing/contrib/mysql2/patcher.rb
Overview
Patcher enables patching of ‘mysql2’ module.
Class Method Summary collapse
Methods included from Patcher
Class Method Details
.patch ⇒ Object
20 21 22 |
# File 'lib/datadog/tracing/contrib/mysql2/patcher.rb', line 20 def patch patch_mysql2_client end |
.patch_mysql2_client ⇒ Object
24 25 26 |
# File 'lib/datadog/tracing/contrib/mysql2/patcher.rb', line 24 def patch_mysql2_client ::Mysql2::Client.include(Instrumentation) end |
.target_version ⇒ Object
16 17 18 |
# File 'lib/datadog/tracing/contrib/mysql2/patcher.rb', line 16 def target_version Integration.version end |