lib/timber/events/http_client_response.rb in timber-2.0.24 vs lib/timber/events/http_client_response.rb in timber-2.1.0.rc1

- old
+ new

@@ -1,5 +1,8 @@ +require "timber/event" +require "timber/util" + module Timber module Events # The HTTP client response event tracks responses for *outgoing* HTTP *requests*. # This gives you structured insight into communication with external services. # @@ -23,9 +26,10 @@ {body: body, headers: headers, request_id: request_id, service_name: service_name, status: status, time_ms: time_ms} end alias to_h to_hash + # Builds a hash representation of containing simply objects, suitable for serialization. def as_json(_options = {}) {:http_client_response => to_hash} end def message \ No newline at end of file