linkerd2/proxy/tests
Eliza Weisman 9321932918
Add request_duration_ms metric and increment request_total on request end (#589)
This PR adds the `request_duration_ms` metric to the Prometheus metrics exported by the proxy. It also modifies the `request_total` metric so that it is incremented when a request stream finishes, rather than when it opens, for consistency with how the `response_total` metric is generated.

Making this change required modifying `telemetry::sensors::http` to generate a `StreamRequestEnd` event similar to the `StreamResponseEnd` event. This is done similarly to how sensors are added to response bodies, by generalizing the `ResponseBody` type into a `MeasuredBody` type that can wrap a request or response body. Since this changed the type of request bodies, it necessitated changing request types pretty much everywhere else in the proxy codebase in order to fix the resulting type errors, which is why the diff for this PR is so large.

Closes #570
2018-03-22 15:27:34 -07:00
..
support Add Prometheus /metrics endpoint to proxy (#569) 2018-03-21 16:19:32 -07:00
discovery.rs Run all discovery tests for HTTP/1 as well as HTTP/2 (#556) 2018-03-09 17:24:48 -08:00
telemetry.rs Add request_duration_ms metric and increment request_total on request end (#589) 2018-03-22 15:27:34 -07:00
transparency.rs proxy: improve transparency of host headers and absolute-uris (#535) 2018-03-08 13:15:21 -08:00