Module: Appsignal::Integrations::NetHttpIntegration

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

Instance Method Summary collapse

Instance Method Details

#request(request, body = nil, &block) ⇒ Object



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

def request(request, body = nil, &block)
  Appsignal.instrument(
    "request.net_http",
    "#{request.method} #{use_ssl? ? "https" : "http"}://#{request["host"] || address}"
  ) do
    super
  end
end