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