Skip to content

Instrumentation

Defined in: src/core.ts:628

Wraps executions and attempts, e.g. to open a tracing span around them (resilience-pipeline/otel uses this). Each hook must call run() exactly once and return what it returns.

optional attempt<R>(info, run): Promise<R>

Defined in: src/core.ts:632

Around each call of the user callback (every retry / hedged attempt); info.context.attemptNumber tells which.

R

ExecutionInfo

() => Promise<R>

Promise<R>


optional execution<R>(info, run): Promise<R>

Defined in: src/core.ts:630

Around a whole pipeline execution, retries included.

R

ExecutionInfo

() => Promise<R>

Promise<R>