What could this be?

Last night I noticed that I had the urge to pee every few minutes, despite that I just went to the bathroom. And every time I went to

the bathroom it was sooo painful. Not a burning sensation, but very painful. Today I noticed that there was a trace of blood in my urine.

I’ve been drinking lots of water, avoiding sex, alcohol, coffee and sugary drinks, took a painkiller, soaked in a warm bath for a bit.

But I really want to know what could be going on. I’m assuming its a bladder infection but I’ve never had one before so I don’t know for sure.

Anyone ever experience this or any advice on what I should do?

Thanks