startSpan()
function startSpan(
name: string,
attributes?: Attributes,
parentContext?: TraceContext): Span;
Defined in: src/lib/logging/context.ts:234
Starts a new span and pushes it onto the context stack.
Parameters
| Parameter | Type | Description |
|---|---|---|
name | string | Human-readable name for the span. |
attributes? | Attributes | Optional attributes for the span. |
parentContext? | TraceContext | Optional explicit parent context (uses current context if not provided). |
Returns
The created span.