Module: Appsignal::Integrations::HttpIntegration Private

Defined in:
lib/appsignal/integrations/http.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#request(verb, uri, opts = {}) ⇒ 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.



7
8
9
10
11
12
13
14
# File 'lib/appsignal/integrations/http.rb', line 7

def request(verb, uri, opts = {})
  parsed_request_uri = uri.is_a?(URI) ? uri : URI.parse(uri.to_s)
  request_uri = "#{parsed_request_uri.scheme}://#{parsed_request_uri.host}"

  Appsignal.instrument("request.http_rb", "#{verb.upcase} #{request_uri}") do
    super
  end
end