Sha256: eb7ef22fcd6e176f5fa17616b733cbcab929ff20b2c2666f72b450e367268df2
Contents?: true
Size: 615 Bytes
Versions: 16
Compression:
Stored size: 615 Bytes
Contents
# frozen_string_literal: true module Appsignal module Integrations # @api private module HttpIntegration 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}" begin Appsignal.instrument("request.http_rb", "#{verb.upcase} #{request_uri}") do super end rescue Exception => error # rubocop:disable Lint/RescueException Appsignal.set_error(error) raise error end end end end end
Version data entries
16 entries across 16 versions & 1 rubygems