class OpenTelemetry::Instrumentation::Bunny::Instrumentation
The Instrumentation
class contains logic to detect and install the bunny instrumentation
Private Instance Methods
patch()
click to toggle source
# File lib/opentelemetry/instrumentation/bunny/instrumentation.rb, line 34 def patch ::Bunny::Channel.prepend(Patches::Channel) ::Bunny::Consumer.prepend(Patches::Consumer) ::Bunny::Queue.prepend(Patches::Queue) ::Bunny::ReaderLoop.prepend(Patches::ReaderLoop) end
require_patches()
click to toggle source
# File lib/opentelemetry/instrumentation/bunny/instrumentation.rb, line 26 def require_patches require_relative 'patch_helpers' require_relative 'patches/channel' require_relative 'patches/consumer' require_relative 'patches/queue' require_relative 'patches/reader_loop' end