ResilienceTelemetry
Defined in: packages/pipeline-resilience/src/interfaces/resilience-options.interface.ts:180
Optional telemetry hooks fired by the underlying cockatiel policies.
These are attached once per policy: per handler for the behavior, per name for a named policy. They are scoped to that policy rather than to a single request.
Methods
Section titled “Methods”onBulkheadRejected()?
Section titled “onBulkheadRejected()?”
optionalonBulkheadRejected(event):void
Defined in: packages/pipeline-resilience/src/interfaces/resilience-options.interface.ts:205
Fired when the bulkhead rejects a call (capacity + queue exhausted).
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
onCircuitClose()?
Section titled “onCircuitClose()?”
optionalonCircuitClose(event):void
Defined in: packages/pipeline-resilience/src/interfaces/resilience-options.interface.ts:199
Fired when the circuit breaker closes (recovers).
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
onCircuitHalfOpen()?
Section titled “onCircuitHalfOpen()?”
optionalonCircuitHalfOpen(event):void
Defined in: packages/pipeline-resilience/src/interfaces/resilience-options.interface.ts:201
Fired when the circuit breaker enters the half-open trial state.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
onCircuitOpen()?
Section titled “onCircuitOpen()?”
optionalonCircuitOpen(event):void
Defined in: packages/pipeline-resilience/src/interfaces/resilience-options.interface.ts:197
Fired when the circuit breaker opens (trips).
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
onRetry()?
Section titled “onRetry()?”
optionalonRetry(event):void
Defined in: packages/pipeline-resilience/src/interfaces/resilience-options.interface.ts:182
Fired before each retry, with the upcoming attempt number and delay (ms).
Parameters
Section titled “Parameters”ResilienceTelemetryEvent & object
Returns
Section titled “Returns”void
onTimeout()?
Section titled “onTimeout()?”
optionalonTimeout(event):void
Defined in: packages/pipeline-resilience/src/interfaces/resilience-options.interface.ts:203
Fired when a timeout is reached.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void