Class: Appsignal::EventFormatter::Faraday::RequestFormatter Private
- Inherits:
-
Appsignal::EventFormatter
- Object
- Appsignal::EventFormatter
- Appsignal::EventFormatter::Faraday::RequestFormatter
- Defined in:
- lib/appsignal/event_formatter/faraday/request_formatter.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Constant Summary
Constants inherited from Appsignal::EventFormatter
Instance Method Summary collapse
- #format(payload) ⇒ Object private
Methods inherited from Appsignal::EventFormatter
format, formatter_classes, formatters, initialize_formatters, register, registered?, unregister
Instance Method Details
#format(payload) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
8 9 10 11 12 13 14 15 |
# File 'lib/appsignal/event_formatter/faraday/request_formatter.rb', line 8 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 |