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

***

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

# Function: currentSpan()

> **currentSpan**(): [`Span`](../classes/Span) \| `undefined`

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

Return the currently active span, or `undefined` if none is active.

## Returns

[`Span`](../classes/Span) \| `undefined`
