withTrace
function withTrace<T>( trace, fn,options): Promise<T>;
This function will create a new trace and assign it to the execution context of the function passed to it.
Type Parameters
Section titled βType ParametersβType Parameter |
---|
|
Parameters
Section titled βParametersβParameter | Type | Description |
---|---|---|
|
|
β |
|
( |
The function to run and assign the trace context to. |
|
|
Options for the creation of the trace |
Returns
Section titled βReturnsβPromise
<T
>