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.2.1 | lib/skylight/probes/excon.rb |
skylight-0.2.0 | lib/skylight/probes/excon.rb |