withTraceContext
function withTraceContext<T>(context, fn): T;Runs a callback with a previously captured trace context.
Pass null or undefined to run the callback without any ambient trace context.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
|
|
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
| |
|
|
() => |
Returns
Section titled “Returns”T