Sha256: bc55aca9609b11a1880ccebc74eba76e0a6eb2aaaf7baf23adb0bbf0d8a13ece
Contents?: true
Size: 523 Bytes
Versions: 8
Compression:
Stored size: 523 Bytes
Contents
module Appsignal class EventFormatter # @api private module Faraday class RequestFormatter def format(payload) http_method = payload[:method].to_s.upcase uri = payload[:url] [ "#{http_method} #{uri.scheme}://#{uri.host}", "#{http_method} #{uri.scheme}://#{uri.host}#{uri.path}" ] end end end end end Appsignal::EventFormatter.register( "request.faraday", Appsignal::EventFormatter::Faraday::RequestFormatter )
Version data entries
8 entries across 8 versions & 1 rubygems