Skip to main content

Module metrics

Module metrics 

Source
Expand description

HTTP request metrics middleware for Actix Web services.

The middleware reads a shared [aster_forge_metrics::SharedMetricsRecorder] from Actix app data, records one HTTP request metric per successful or failed downstream service call, and groups unmatched routes into stable low-cardinality labels.

Structsยง

MetricsMiddleware
Actix middleware that records request duration and status into the shared metrics recorder.
MetricsService
Service wrapper installed by MetricsMiddleware.