Documentation Index
Fetch the complete documentation index at: https://docs.galileo.ai/llms.txt
Use this file to discover all available pages before exploring further.
Function: log()
Call Signature
Type Parameters
T
T extends unknown[]
R
R
Parameters
options
LogOptions
The span options.
fn
(…args: T) => R
The function to wrap. Can return R, Promise<R>, Generator<R>, or AsyncGenerator<R>.
Returns
A wrapped function with the same signature and return type as fn.Parameters
args
…T
Returns
R
Call Signature
Type Parameters
T
T extends unknown[]
R
R
Parameters
options
LogOptions
The span options.
fn
(…args: T) => Promise<R>
The function to wrap. Can return R, Promise<R>, Generator<R>, or AsyncGenerator<R>.
Returns
A wrapped function with the same signature and return type as fn.Parameters
args
…T
Returns
Promise<R>
Call Signature
Type Parameters
T
T extends unknown[]
R
R
Parameters
options
LogOptions
The span options.
fn
(…args: T) => Generator<R>
The function to wrap. Can return R, Promise<R>, Generator<R>, or AsyncGenerator<R>.
Returns
A wrapped function with the same signature and return type as fn.Parameters
args
…T
Returns
Generator<R>
Call Signature
Type Parameters
T
T extends unknown[]
R
R
Parameters
options
LogOptions
The span options.
fn
(…args: T) => AsyncGenerator<R>
The function to wrap. Can return R, Promise<R>, Generator<R>, or AsyncGenerator<R>.
Returns
A wrapped function with the same signature and return type as fn.Parameters
args
…T
Returns
AsyncGenerator<R>