Intermittent Spotting 4-5 Weeks

I've been spotting intermittently for the past 2 weeks with some mild cramping. Today I felt a sharp cramp, it almost felt liked it shot from one direction to another very rapidly, lasted a couple of seconds then it went away. I believed it to be gas however when I went to the restroom I noticed I was spotting again and also that there was some light mucus.  It feels like there is more mucus production as the weeks progress. Should I be concerned and has this happened to anyone else?