Module: Appsignal::Integrations::HttpIntegration::HashOptions

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

Overview

The event is recorded at the request boundary, so a redirected request stays a single request.http_rb event spanning every hop. That boundary lives in more than one place: a bare request runs through HTTP::Client#request, but in http6 a chained request (.follow, .headers, .timeout, ...) runs through HTTP::Session#request instead, which never touches Client#request. The hook prepends one of these onto each. Client#request takes positional options in http5 and keyword options in http6; Session#request (http6 only) takes keyword options.

Instance Method Summary collapse

Instance Method Details

#request(verb, uri, opts = {}) ⇒ Object



25
26
27
# File 'lib/appsignal/integrations/http.rb', line 25

def request(verb, uri, opts = {})
  HttpIntegration.instrument(verb, uri) { super }
end