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

Version Path
appsignal-2.0.6 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-2.0.5 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-2.0.5.beta.1 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-2.1.0.alpha.3 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-2.1.0.alpha.2 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-2.1.0.alpha.1 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-2.0.4 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-2.0.3 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-2.0.2 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-2.0.1 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-2.0.0 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-2.0.0.beta.1 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-1.4.0.beta.1 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-1.3.6 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-1.3.6.beta.1 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-1.3.5 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-1.3.5.beta.1 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-1.3.4 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-1.3.3 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-1.4.0.alpha.2 lib/appsignal/event_formatter/faraday/request_formatter.rb