Sha256: 580604edb85ef446d08075b995899ff750f08fd8f8eaa63b649f45e388aaf27d

Contents?: true

Size: 547 Bytes

Versions: 22

Compression:

Stored size: 547 Bytes

Contents

module Skylight
  module Probes
    module Excon
      class Probe
        def install
          # Don't require until installation since it depends on Excon being loaded
          require 'skylight/probes/excon/middleware'

          idx = ::Excon.defaults[:middlewares].index(::Excon::Middleware::Instrumentor)

          # TODO: Handle possibility of idx being nil
          ::Excon.defaults[:middlewares].insert(idx, Skylight::Probes::Excon::Middleware)
        end
      end
    end

    register("Excon", "excon", Excon::Probe.new)
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
skylight-0.3.12 lib/skylight/probes/excon.rb
skylight-0.3.11 lib/skylight/probes/excon.rb
skylight-0.3.10 lib/skylight/probes/excon.rb
skylight-0.3.8 lib/skylight/probes/excon.rb
skylight-0.3.7 lib/skylight/probes/excon.rb
skylight-0.3.6 lib/skylight/probes/excon.rb
skylight-0.3.3 lib/skylight/probes/excon.rb
skylight-0.3.2 lib/skylight/probes/excon.rb
skylight-0.3.1 lib/skylight/probes/excon.rb
skylight-0.3.0 lib/skylight/probes/excon.rb
skylight-0.2.7 lib/skylight/probes/excon.rb
skylight-0.2.6 lib/skylight/probes/excon.rb
skylight-0.3.0.rc.6 lib/skylight/probes/excon.rb
skylight-0.2.5 lib/skylight/probes/excon.rb
skylight-0.2.4 lib/skylight/probes/excon.rb
skylight-0.3.0.rc.5 lib/skylight/probes/excon.rb
skylight-0.3.0.rc.4 lib/skylight/probes/excon.rb
skylight-0.3.0.rc.3 lib/skylight/probes/excon.rb
skylight-0.2.3 lib/skylight/probes/excon.rb
skylight-0.2.2 lib/skylight/probes/excon.rb