Expand description
A metrics powered TraceLayer that works as Tower middleware.
Structs§
- Metrics
Recorder - Holds the state required for recording metrics on a given request.
Functions§
- make_
layer - Construct a TraceLayer that will use an installed metrics::Recorder to record metrics per request. The provided Fn is used to extract the size in bytes from the chunks in a response for all OnBodyChunk calls.
Type Aliases§
- Metrics
Trace Layer - A Metrics Trace Layer using a MetricsRecorder.