Look at the very end of the rod. The small guide the line passes through is called the tip top. If that guide came loose, save it. If part of the rod itself snapped off with it, save both pieces. A tackle shop can give you a better answer when it can see where the break happened.
Call ahead and say, “The tip broke on a spinning rod I’d like to keep. Can I bring in the rod and the broken piece for you to look at?” Ask, “Would a replacement change how the rod feels?” and “What would the part and installation cost together?”
Search “fishing rod tip repair” with your town’s name. Bring a photo of the rod label if you’re asking for an estimate first.