coupergateway / couper

Couper is a lightweight API gateway designed to support developers in building and operating API-driven Web projects
https://couper.io
MIT License
85 stars 15 forks source link

Improve log message "context deadline exceeded" with `beta_health` check #691

Open johakoch opened 1 year ago

johakoch commented 1 year ago

If the beta_health-checked backend does not respond in time, the logged message is "backend error: context deadline exceeded", which could be more user-friendly. Example:

server {
  hosts = ["*:8080"]
  endpoint "/" {
    proxy {
      backend = "be"
    }
  }
}

definitions {
  backend "be" {
    origin = "https://blackhole.webpagetest.org"
    beta_health {
    }
  }
}