lib/appdash/event/rack_server.rb in appdash-0.6.0 vs lib/appdash/event/rack_server.rb in appdash-0.6.1
- old
+ new
@@ -25,11 +25,11 @@
protected
def parse_request(req)
data = {
method: req.request_method,
- url: req.url,
+ path: req.fullpath,
scheme: req.scheme,
host: req.host,
remote_ip: req.ip,
content_length: req.content_length
}
@@ -42,10 +42,10 @@
data
end
def parse_response(resp)
{
- content_length: resp.length,
+ content_length: resp.content_length,
status_code: resp.status
}
end
end