Module: NetworkResiliency::Adapter::Postgres
Defined Under Namespace
Modules: Instrumentation
Instance Method Summary collapse
Instance Method Details
#patch ⇒ Object
9 10 11 12 13 |
# File 'lib/network_resiliency/adapter/postgres.rb', line 9 def patch return if patched? PG::Connection.singleton_class.prepend(Instrumentation) end |
#patched? ⇒ Boolean
15 16 17 |
# File 'lib/network_resiliency/adapter/postgres.rb', line 15 def patched? PG::Connection.singleton_class.ancestors.include?(Instrumentation) end |