cloudflare / foundations

Cloudflare's Rust service foundations library.
https://blog.cloudflare.com/introducing-foundations-our-open-source-rust-service-foundation-library
BSD 3-Clause "New" or "Revised" License
1.25k stars 51 forks source link

make health check configurable #25

Closed ibotty closed 7 months ago

ibotty commented 7 months ago

It should optionally call a closure that actually checks whether the service is healthy.

inikulin commented 7 months ago

Health check just gives a signal that service process is still up and the telemetry server endpoint is still accessible. If apps need to expose any additional debug endpoints or health checks then they can do that by providing custom server routes: https://docs.rs/foundations/latest/foundations/telemetry/struct.TelemetryServerRoute.html