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.209.6 lib/instana/activators/excon.rb
instana-1.209.5 lib/instana/activators/excon.rb
instana-1.209.4 lib/instana/activators/excon.rb
instana-1.209.3 lib/instana/activators/excon.rb
instana-1.209.2 lib/instana/activators/excon.rb
instana-1.209.1 lib/instana/activators/excon.rb
instana-1.209.0.pre3 lib/instana/activators/excon.rb
instana-1.209.0.pre2 lib/instana/activators/excon.rb
instana-1.209.0.pre1 lib/instana/activators/excon.rb
instana-1.208.0 lib/instana/activators/excon.rb
instana-1.207.0 lib/instana/activators/excon.rb
instana-1.206.0 lib/instana/activators/excon.rb
instana-1.205.0 lib/instana/activators/excon.rb
instana-1.204.0 lib/instana/activators/excon.rb
instana-1.204.0.pre3 lib/instana/activators/excon.rb
instana-1.204.0.pre2 lib/instana/activators/excon.rb
instana-1.204.0.pre1 lib/instana/activators/excon.rb
instana-1.203.2 lib/instana/activators/excon.rb
instana-1.203.1 lib/instana/activators/excon.rb
instana-1.203.0 lib/instana/activators/excon.rb