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