Sha256: 0b700e4ccfcddc429c49c1a8484e9a70a1b1c1a264201bc456a2aa44d27601d5

Contents?: true

Size: 422 Bytes

Versions: 3

Compression:

Stored size: 422 Bytes

Contents

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

module Instana
  module Activators
    class Excon < Activator
      def can_instrument?
        defined?(::Excon) && 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

3 entries across 3 versions & 1 rubygems

Version Path
instana-1.195.0 lib/instana/activators/excon.rb
instana-1.193.6 lib/instana/activators/excon.rb
instana-1.193.5 lib/instana/activators/excon.rb