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

Version Path
appsignal-3.12.6-java lib/appsignal/integrations/http.rb
appsignal-3.12.6 lib/appsignal/integrations/http.rb
appsignal-3.12.5-java lib/appsignal/integrations/http.rb
appsignal-3.12.5 lib/appsignal/integrations/http.rb
appsignal-3.12.4-java lib/appsignal/integrations/http.rb
appsignal-3.12.4 lib/appsignal/integrations/http.rb
appsignal-3.12.3-java lib/appsignal/integrations/http.rb
appsignal-3.12.3 lib/appsignal/integrations/http.rb
appsignal-3.12.2-java lib/appsignal/integrations/http.rb
appsignal-3.12.2 lib/appsignal/integrations/http.rb
appsignal-3.12.1-java lib/appsignal/integrations/http.rb
appsignal-3.12.1 lib/appsignal/integrations/http.rb
appsignal-3.12.0-java lib/appsignal/integrations/http.rb
appsignal-3.12.0 lib/appsignal/integrations/http.rb
appsignal-3.11.0-java lib/appsignal/integrations/http.rb
appsignal-3.11.0 lib/appsignal/integrations/http.rb