class Instana::Activators::Excon
Public Instance Methods
can_instrument?()
click to toggle source
# File lib/instana/activators/excon.rb, line 7 def can_instrument? defined?(::Excon) && defined?(::Excon::Middleware::Base) && ::Excon.respond_to?(:defaults) && Instana.config[:excon][:enabled] end
instrument()
click to toggle source
# File lib/instana/activators/excon.rb, line 11 def instrument require 'instana/instrumentation/excon' ::Excon.defaults[:middlewares].unshift(::Instana::Instrumentation::Excon) true end