lib/timber/contexts/http.rb in timber-1.0.3 vs lib/timber/contexts/http.rb in timber-1.0.4

- old
+ new

@@ -5,20 +5,18 @@ # presented here. For example, viewing all logs for a given request_id. # # @note This context should be installed automatically through probes, # such as the {Probes::RackHTTPContext} probe. class HTTP < Context + @keyspace = :http + attr_reader :method, :path, :remote_addr, :request_id def initialize(attributes) @method = attributes[:method] || raise(ArgumentError.new(":method is required")) @path = attributes[:path] || raise(ArgumentError.new(":path is required")) @remote_addr = attributes[:remote_addr] @request_id = attributes[:request_id] - end - - def keyspace - :http end def as_json(_options = {}) {:method => method, :path => path, :remote_addr => remote_addr, :request_id => request_id} end \ No newline at end of file