Sha256: b766535626c08fb0fa2bebab90314d37cf546b01b58f24635ac36fa176977672
Contents?: true
Size: 536 Bytes
Versions: 3
Compression:
Stored size: 536 Bytes
Contents
# encoding: utf-8 LibraryDetection.defer do @name = :rainbows depends_on do defined?(::Rainbows) && defined?(::Rainbows::HttpServer) end executes do OneApm::Agent.logger.info 'Installing Rainbows instrumentation' end executes do Rainbows::HttpServer.class_eval do old_worker_loop = instance_method(:worker_loop) define_method(:worker_loop) do |worker| OneApm::Agent.instance.after_fork(:force_reconnect => true) old_worker_loop.bind(self).call(worker) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
oneapm_rpm-1.1.2 | lib/one_apm/inst/dispatcher/rainbows.rb |
oneapm_rpm-1.1.1 | lib/one_apm/inst/dispatcher/rainbows.rb |
oneapm_rpm-1.1.0 | lib/one_apm/inst/dispatcher/rainbows.rb |