for credit towards the 10'000 miles for upgrade vouchers, also for credit towards 1 Mio miles status, flights must booked with UA flight numbers and the plane must be UA metal too.
On flights on US and transatlantic flights on LH you still get the status bonus - on other StarCarriers not even that.