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

Version Path
appsignal-2.5.3-java lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-2.5.3 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-2.5.3.alpha.2 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-2.5.3.alpha.2-java lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-2.5.3.alpha.1 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-2.5.3.alpha.1-java lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-2.5.2-java lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-2.5.2 lib/appsignal/event_formatter/faraday/request_formatter.rb