Type Alias CircuitBreakerProviderCreateSettings

CircuitBreakerProviderCreateSettings: ErrorPolicySettings & {
    trigger?: CircuitBreakerTrigger;
}

IMPORT_PATH: "@daiso-tech/core/circuit-breaker/contracts"

Type declaration

  • Optionaltrigger?: CircuitBreakerTrigger

    You can decide to track only errors, only slow calls or both as failures.

    import { CIRCUIT_BREAKER_TRIGGER} from "@daiso-tech/core/circuit-breaker/contracts";

    CIRCUIT_BREAKER_TRIGGER.BOTH