Skip to main content

Crate tower_trace_metrics

Crate tower_trace_metrics 

Source
Expand description

A metrics powered TraceLayer that works as Tower middleware.

Structs§

MetricsRecorder
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§

MetricsTraceLayer
A Metrics Trace Layer using a MetricsRecorder.