Most managers I've had appreciate being told individually. If there's any chance at all you'd take a counter offer, you should let management know privately. Theyre less likely to counter if you're news is known publicly.
(Imo never take a counter but always listen to one. That's valuable market information)