Formally speaking, it's simply a choice you make when you make the first attack on your turn, regardless of what sort of attack it is. It could even be a ranged spell attack; you would still make the choice to be reckless or not at that point.
Thanks for the clarification
