Sha256: 7c64e69f66eb4dc37e6140a6557c37eeb576dd15bc236613baf9b6d68ded9752

Contents?: true

Size: 472 Bytes

Versions: 30

Compression:

Stored size: 472 Bytes

Contents

module Appsignal
  class EventFormatter
    # @api private
    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

30 entries across 30 versions & 1 rubygems

Version Path
appsignal-2.5.1-java lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-2.5.1 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-2.5.1.beta.1-java lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-2.5.1.beta.1 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-2.5.0-java lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-2.5.0 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-2.5.0.beta.1-java lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-2.5.0.beta.1 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-2.5.0.alpha.1-java lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-2.5.0.alpha.1 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-2.4.3 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-2.4.2 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-2.4.1 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-2.4.0 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-2.4.0.alpha.1 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-2.3.7 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-2.3.6 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-2.3.6.beta.1 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-2.3.4 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-2.3.3 lib/appsignal/event_formatter/faraday/request_formatter.rb