createContextFromStack()
function createContextFromStack(stack: TraceStack): TraceContext;
Defined in: src/lib/logging/context.ts:135
Creates a trace context from a trace stack received from another runtime. This continues the trace by creating a new span as a child of the last span.
Parameters
| Parameter | Type | Description |
|---|---|---|
stack | TraceStack | The trace stack from the previous runtime. |
Returns
A new trace context that continues the trace.