@statesync/core / RetryReportingOptions
Interface: RetryReportingOptions
Defined in: retry.ts:159
Options for withRetryReporting, which combines retry logic with structured logging and error reporting.
Properties
logger?
optional logger: Logger;Defined in: retry.ts:174
Logger instance for emitting structured retry warnings. When provided, a warn-level message is logged for each retry attempt.
onError()?
optional onError: (ctx) => void;Defined in: retry.ts:188
Optional error hook invoked on each retry attempt.
The callback receives a SyncErrorContext with:
phaseset to'getSnapshot'willRetryset totrueattemptindicating which retry this is (1-based)nextDelayMsindicating the backoff delay before the next attempt
If this callback itself throws, the error is caught and logged (it does not affect the retry flow).
Parameters
| Parameter | Type |
|---|---|
ctx | SyncErrorContext |
Returns
void
policy?
optional policy: RetryPolicy;Defined in: retry.ts:168
Retry policy configuration. When omitted, the default RetryPolicy values are used.
topic
topic: string;Defined in: retry.ts:163
The topic associated with this provider, used for log context and error reporting.
