Sha256: bc1f2ce0ce6db75ab53057fcf06f30007569699992831874086e6f7605f1c865
Contents?: true
Size: 453 Bytes
Versions: 59
Compression:
Stored size: 453 Bytes
Contents
module Appsignal class EventFormatter module Faraday class RequestFormatter < Appsignal::EventFormatter register 'request.faraday' 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
Version data entries
59 entries across 59 versions & 1 rubygems