Sets the current span in scope until the returned callable is called. It is a programming
error to drop or never close the result.

@param TraceContext|null $currentContext
@return callable The scope closed