Sha256: cdea6719c8b2e4fe423057131b93f26d4cb9c8aa63efb00a231478cd72877ad9

Contents?: true

Size: 554 Bytes

Versions: 406

Compression:

Stored size: 554 Bytes

Contents

# frozen_string_literal: true

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

406 entries across 406 versions & 1 rubygems

Version Path
appsignal-3.9.2-java lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-3.9.2 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-3.9.1-java lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-3.9.1 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-3.9.0-java lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-3.9.0 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-3.8.1-java lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-3.8.1 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-3.8.0-java lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-3.8.0 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-3.7.6-java lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-3.7.6 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-3.7.2-java lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-3.7.2 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-3.7.1-java lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-3.7.1 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-3.7.0-java lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-3.7.0 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-3.6.5-java lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-3.6.5 lib/appsignal/event_formatter/faraday/request_formatter.rb