Circuit Breaker#
Cut the circuit in case a service is down.
- blacksmith.domain.model.middleware.circuit_breaker.exclude_httpx_4xx(exc: blacksmith.domain.exceptions.HTTPError) bool #
Exclude client side http errors.
- class blacksmith.domain.model.middleware.circuit_breaker.GaugeStateValue#
- CLOSED = 0#
- HALF_OPEN = 1#
- OPEN = 2#
- class blacksmith.domain.model.middleware.circuit_breaker.PrometheusHook(metrics: blacksmith.domain.model.middleware.prometheus.PrometheusMetrics)#