class ScoutApm::Instruments::Typhoeus
Attributes
context[R]
Public Class Methods
new(context)
click to toggle source
# File lib/scout_apm/instruments/typhoeus.rb, line 6 def initialize(context) @context = context @installed = false end
Public Instance Methods
install()
click to toggle source
# File lib/scout_apm/instruments/typhoeus.rb, line 19 def install if defined?(::Typhoeus) @installed = true logger.info "Instrumenting Typhoeus" ::Typhoeus::Request.send(:prepend, TyphoeusInstrumentation) ::Typhoeus::Hydra.send(:prepend, TyphoeusHydraInstrumentation) end end
installed?()
click to toggle source
# File lib/scout_apm/instruments/typhoeus.rb, line 15 def installed? @installed end
logger()
click to toggle source
# File lib/scout_apm/instruments/typhoeus.rb, line 11 def logger context.logger end