[**Documentation**](../../../README)

***

[Documentation](../../../README) / [@zerotal/telemetry](../README) / SpanContext

# Variable: SpanContext

> `const` **SpanContext**: `AsyncLocalStorage`\<`ActiveContext`\>

Defined in: [telemetry/src/SpanContext.ts:13](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/telemetry/src/SpanContext.ts#L13)

Propagates the active span through async call stacks via AsyncLocalStorage.
Set by `Tracer.withSpan()`; read by nested `withSpan()` calls to attach
child spans to the correct parent.
