Class: Sqreen::Ecosystem::Databases::Postgres

Inherits:
Object
  • Object
show all
Includes:
ModuleApi::Instrumentation, ModuleApi::MessageProducer
Defined in:
lib/sqreen/ecosystem/databases/postgres.rb

Instance Attribute Summary

Attributes included from ModuleApi::MessageProducer

#tracing_broker

Instance Method Summary collapse

Methods included from ModuleApi::Instrumentation

included

Instance Method Details

#setupObject



18
19
20
21
# File 'lib/sqreen/ecosystem/databases/postgres.rb', line 18

def setup
  advice = wrap_for_interest(DatabaseConnectionData, &method(:after_advice))
  instrument 'PG::Connection#initialize', after: advice
end