The thrown value or rejection reason.
Where the error originated.
A promise that resolves once the write settles.
await recordException(new AggregateError(errs, "search failed"), "search");
export async function recordException(reason: unknown, source: ErrorSource): Promise<void> {
return recordError({ source, ...describeError(reason) });
}
Records an arbitrary thrown value into the ring buffer, folding its
causechain (and anyAggregateErrorsub-errors) into the stored stack. Convenience over recordError for callers that hold the raw error.