Class: Appsignal::Hooks::NetHttpHook Private
- Defined in:
 - lib/appsignal/hooks/net_http.rb
 
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #dependencies_present? ⇒ Boolean private
 - #install ⇒ Object private
 
Methods inherited from Hook
#initialize, #installed?, register, #try_to_install
Constructor Details
This class inherits a constructor from Appsignal::Hooks::Hook
Instance Method Details
#dependencies_present? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
      11 12 13  | 
    
      # File 'lib/appsignal/hooks/net_http.rb', line 11 def dependencies_present? Appsignal.config && Appsignal.config[:instrument_net_http] end  | 
  
#install ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
      15 16 17 18 19 20  | 
    
      # File 'lib/appsignal/hooks/net_http.rb', line 15 def install require "appsignal/integrations/net_http" Net::HTTP.send(:prepend, Appsignal::Integrations::NetHttpIntegration) Appsignal::Environment.report_enabled("net_http") end  |