You don't mention your age, but 4 - 5 years in one field
suggests you haven't been doing this professionally for all that long? That said, there's no rule that you can't be disinterested in a career path at any point.
I'm a developer myself and in a similar mindset to you, but in my case, I've been working in the industry for 16 years since I graduated. Admittedly, my enthusiasm for programming had started to wane towards the end of my degree, yet somehow I made it this far before the role is getting the better of me.
So what can you do?
Well, to argue in favour of sticking with it, software development is a pretty broad field, so there could be opportunities to use new technology that might excite you again or to specialise in a different area. I started as a "full-stack" engineer and used to find the variety of tasks helped me stay interested: database design, backend coding and front-end web interfaces (HTML, CSS, JS etc.) Over time, I moved away from that into more specialist areas, primarily backend coding (working with MSMQ, RabbitMQ, C# middle tier, big data etc.)
I also worked my way up into middle management for a while (Development Manager and then Tech Director for an SME), but found the people-management side didn't interest me so eventually I stepped back from that.
Before deciding to switch careers entirely, you could also consider trying to improve your life outside of work: find more engaging hobbies etc. Getting better value from your free time may make you more tolerant of the boredom of work. All jobs are boring at times and it's tempting to think the grass could be greener elsewhere, but often that isn't the case regardless of what career you choose.
Lastly, there is a complete career switch. This is where I'm at right now, but with the dilemma that I've yet to decide what my new career should be. Right now I'm exploring options by trying new hobbies and getting involved in different communities both online and offline, trying to spark an interest that I might want to develop into a full-time job. It is tough when you earn a good salary to step back from that, but at my age, you do realise that quality of life is as important - if not more - than a healthy paycheck.
You can make switching career easier by minimizing your financial commitments so that you aren't financially tied to your current salary level and can afford to take a pay cut to explore something new.