Get checked out for sleep apnea! Being bored at work is normal but not being able to stay awake for an 8 hour shift means you are absolutely not getting proper rest when you are sleeping.
While you wait for your appointment, you can try resetting your sleep pattern by taking a solid 5mg dose of melatonin 60 minutes before bedtime for a week and ensuring you have 9-10 hours before you need to be up. I was in bed for 8 hours every night and got a rude surprise when I got a Fitbit for sleep tracking and found out I was only getting 6 hours of sleep in those 8 hours after you subtracted all the time it took me to fall asleep and any night-time wakings. Turns out I wake up 4-5 times a night and don’t remember it in the morning. Rolling bedtime back 90 minutes felt like a chore but it was worth it to feel good every day.
Working full days does suck so I tend to try to give myself 2-3 things to look forward to during my shift to split it into 3-4 time blocks. Sometimes they are little candies like Lifesavers or Jolly Ranchers, or 10 min bathroom break with phone game, reading something interesting in Lemmy, taking a walk down to say Hi to someone elsewhere in the building, any little activity that feels like something I want to do, that’s not strictly in my job description. Depending on your job you can even plan 6 of them and give yourself something for every hour that not first and last.