withGenerationSpan
const withGenerationSpan: <TOutput>(fn, options?, parent?) => Promise<TOutput>;
Automatically create a generation span, run fn and close the span
Type Parameters
Section titled “Type Parameters”Type Parameter |
---|
|
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
|
( |
|
|
|
Returns
Section titled “Returns”Promise
<TOutput
>