withFunctionSpan
const withFunctionSpan: <TOutput>(fn, options, parent?) => Promise<TOutput>;
Create a new function span and automatically start and end it.
Type Parameters
Section titled βType ParametersβType Parameter |
---|
|
Parameters
Section titled βParametersβParameter | Type |
---|---|
|
( |
|
|
|
Returns
Section titled βReturnsβPromise
<TOutput
>