OptionalenabledOptionalfailureConsecutive-failure trip mode (default strategy).
OptionalwindowRolling-window trip mode. If set, used INSTEAD of failureThreshold.
Optionalresetms to stay open before allowing a half-open trial.
Optionalhalfconcurrent trial requests allowed while half-open.
OptionalisOverride default failure classification (network/timeout/retryable_status). Not consulted for an error that shows the attempt never reached the host (e.g. a body factory that threw before the request was dispatched) — those are always ignored, since there is no host-health signal to classify.
Turns the breaker on. In 1.x a
circuitBreakerwithoutenabled: trueis inert; in 2.0, settingcircuitBreakerturns it on, as withretryBudgetandrateLimit, and onlyenabled: falseturns it off. Passenabledexplicitly, or remove a config you don't use, so 2.0 doesn't change your behavior.