Function: log()

function log<T, R>(
  options: LogOptions,
  fn: (...args: T) => Promise<R>,
): (...args: T) => Promise<R>;

Defined in: src/wrappers.ts:53

Wraps a function to log its execution as a span in Galileo.

Type Parameters

T

T extends unknown[]

R

R

Parameters

options

LogOptions

fn

(…args: T) => Promise<R>

Returns

(...args: T): Promise<R>;

Parameters

args

T

Returns

Promise<R>