feat(healthcheck): add failing sections to report (#7789)

This commit is contained in:
Colin Adler
2023-06-01 19:21:24 -05:00
committed by GitHub
parent 9b8e5c2d8a
commit 2b63492649
11 changed files with 217 additions and 38 deletions

View File

@ -47,11 +47,9 @@ func (api *API) debugDeploymentHealth(rw http.ResponseWriter, r *http.Request) {
ctx, cancel := context.WithTimeout(context.Background(), api.HealthcheckTimeout)
defer cancel()
report, err := api.HealthcheckFunc(ctx, apiKey)
if err == nil {
api.healthCheckCache.Store(report)
}
return report, err
report := api.HealthcheckFunc(ctx, apiKey)
api.healthCheckCache.Store(report)
return report, nil
})
select {