Skip to main content

Function: runWithCorrelationId()

runWithCorrelationId<T>(id, fn): T

Defined in: src/observability/correlation.ts:8

Run fn with id as the current correlation id (visible to everything it awaits).

Type Parameters​

T​

T

Parameters​

id​

string

fn​

() => T

Returns​

T