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

included

Class Method Details

.patchObject



20
21
22
# File 'lib/datadog/tracing/contrib/pg/patcher.rb', line 20

def patch
  patch_pg_connection
end

.patch_pg_connectionObject



24
25
26
# File 'lib/datadog/tracing/contrib/pg/patcher.rb', line 24

def patch_pg_connection
  ::PG::Connection.include(Instrumentation)
end

.target_versionObject



16
17
18
# File 'lib/datadog/tracing/contrib/pg/patcher.rb', line 16

def target_version
  Integration.version
end