Crate rocket_health

Crate rocket_health 

Source

Structs§

HealthMetrics
Tracks metrics about application health, including:
HealthMetricsFairing
Rocket fairing that automatically records request latency and request count into HealthMetrics.
HealthResponse
Response returned by the /health endpoint.

Functions§

health_handler
HTTP GET handler for the /health endpoint.
mount_health_route
Mounts the health route and attaches the HealthMetricsFairing.