Module: Datadog::Contrib::Mysql2::Patcher
- Includes:
- Patcher
- Defined in:
- lib/ddtrace/contrib/mysql2/patcher.rb
Overview
Patcher enables patching of ‘mysql2’ module.
Class Method Summary collapse
Methods included from Patcher
Class Method Details
.patch ⇒ Object
17 18 19 |
# File 'lib/ddtrace/contrib/mysql2/patcher.rb', line 17 def patch patch_mysql2_client end |
.patch_mysql2_client ⇒ Object
21 22 23 |
# File 'lib/ddtrace/contrib/mysql2/patcher.rb', line 21 def patch_mysql2_client ::Mysql2::Client.send(:include, Instrumentation) end |
.target_version ⇒ Object
13 14 15 |
# File 'lib/ddtrace/contrib/mysql2/patcher.rb', line 13 def target_version Integration.version end |