Sha256: ed85e92e499f37168029ef38fb7e6676df7d28d3433c4c01f74545709fb263e9

Contents?: true

Size: 495 Bytes

Versions: 60

Compression:

Stored size: 495 Bytes

Contents

# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2021

module Instana
  module Activators
    class Excon < Activator
      def can_instrument?
        defined?(::Excon) && defined?(::Excon::Middleware::Base) && ::Excon.respond_to?(:defaults) && Instana.config[:excon][:enabled]
      end

      def instrument
        require 'instana/instrumentation/excon'

        ::Excon.defaults[:middlewares].unshift(::Instana::Instrumentation::Excon)

        true
      end
    end
  end
end

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
instana-1.217.1 lib/instana/activators/excon.rb
instana-1.217.0 lib/instana/activators/excon.rb
instana-1.216.0 lib/instana/activators/excon.rb
instana-1.215.1 lib/instana/activators/excon.rb
instana-1.215.0 lib/instana/activators/excon.rb
instana-1.214.4 lib/instana/activators/excon.rb
instana-1.214.3 lib/instana/activators/excon.rb
instana-1.214.2 lib/instana/activators/excon.rb
instana-1.214.1 lib/instana/activators/excon.rb
instana-1.214.0 lib/instana/activators/excon.rb
instana-1.213.3 lib/instana/activators/excon.rb
instana-1.213.2 lib/instana/activators/excon.rb
instana-1.213.1 lib/instana/activators/excon.rb
instana-1.213.0 lib/instana/activators/excon.rb
instana-1.212.0 lib/instana/activators/excon.rb
instana-1.211.0 lib/instana/activators/excon.rb
instana-1.210.1 lib/instana/activators/excon.rb
instana-1.210.0 lib/instana/activators/excon.rb
instana-1.209.8 lib/instana/activators/excon.rb
instana-1.209.7 lib/instana/activators/excon.rb