tower-trace-metrics
A tower-http TraceLayer that records metrics using the metrics facade.
use make_layer;
use ServiceBuilder;
use bytes;
Recorded Metrics
- http_request_counter The total count of all requests
- http_request_failure_counter The total count of all request failures
- http_request_size_bytes_hist A histogram of request size in bytes
- http_request_request_time_micros_hist A histogram of request time in microseconds
Each metric is faceted by path, method, and host for the request.