Module: HTTPInstrumentation::Instrumentation::TyphoeusHook
- Defined in:
- lib/http_instrumentation/instrumentation/typhoeus_hook.rb
Overview
This module is responsible for instrumenting the typhoeus gem.
Defined Under Namespace
Class Method Summary collapse
Class Method Details
.installed? ⇒ Boolean
18 19 20 21 22 23 |
# File 'lib/http_instrumentation/instrumentation/typhoeus_hook.rb', line 18 def installed? !!( defined?(::Typhoeus::Request) && ::Typhoeus::Request.include?(Easy) && defined?(::Typhoeus::Hydra) && ::Typhoeus::Hydra.include?(Multi) ) end |
.instrument! ⇒ Object
13 14 15 16 |
# File 'lib/http_instrumentation/instrumentation/typhoeus_hook.rb', line 13 def instrument! Instrumentation.instrument!(::Typhoeus::Request, Easy, :run) if defined?(::Typhoeus::Request) Instrumentation.instrument!(::Typhoeus::Hydra, Multi, :run) if defined?(::Typhoeus::Hydra) end |