Skip to main content

CircuitBreakerOptions

Upgather SDK


Upgather SDK / CircuitBreakerOptions

Interface: CircuitBreakerOptions

Configuration options for CircuitBreakerErrorHandling.

Extended by

Properties

coolingPeriodMs?

optional coolingPeriodMs: number

Cooling period in ms before trying again (default: 30000)


failureThreshold?

optional failureThreshold: number

Failure threshold before opening circuit (default: 5)


logger?

optional logger: LoggerInterface

Optional logger instance for circuit breaker events


namespace?

optional namespace: string

Optional namespace for isolating circuit breakers in different parts of the app


serviceKeyExtractor()?

optional serviceKeyExtractor: (url) => string

Function to extract service key from the URL

Parameters

url

string

Returns

string