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-1.4.0.alpha.1 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-1.3.2 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-1.3.1 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-1.3.0 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-1.3.0.beta.3 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-1.3.0.beta.2 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-1.3.0.beta.1 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-1.2.5 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-1.2.4 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-1.2.4.beta.4 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-1.2.4.beta.3 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-1.2.4.beta.2 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-1.2.4.beta.1 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-1.2.3 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-1.2.3.beta.3 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-1.2.3.beta.2 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-1.2.3.beta.1 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-1.2.2 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-1.2.1 lib/appsignal/event_formatter/faraday/request_formatter.rb
appsignal-1.2.1.beta.3 lib/appsignal/event_formatter/faraday/request_formatter.rb