CircuitBreakerConfig
Upgather SDK / CircuitBreakerConfig
Interface: CircuitBreakerConfig
Configuration options for circuit breaker.
Extends
Properties
coolingPeriodMs?
optionalcoolingPeriodMs:number
Cooling period in ms before trying again (default: 30000)
Inherited from
CircuitBreakerOptions.coolingPeriodMs
enabled
enabled:
boolean
failureThreshold?
optionalfailureThreshold:number
Failure threshold before opening circuit (default: 5)
Inherited from
CircuitBreakerOptions.failureThreshold
logger?
optionallogger:LoggerInterface
Optional logger instance for circuit breaker events
Inherited from
namespace?
optionalnamespace:string
Optional namespace for isolating circuit breakers in different parts of the app
Inherited from
CircuitBreakerOptions.namespace
serviceKeyExtractor()?
optionalserviceKeyExtractor: (url) =>string
Function to extract service key from the URL
Parameters
url
string
Returns
string