Skip to content

getCurrentSpan

function getCurrentSpan(): Span<any> | null;

This function will get the current span from the execution context.

Span<any> | null

The current span or null if there is no span.