Skip to main content

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

ParameterTypeDescription
stackTraceStackThe trace stack from the previous runtime.

Returns

TraceContext

A new trace context that continues the trace.