You would go to the doctor if you had this thing hanging from your bottom! How long has it been there? I would take her to the vet ASAP, dogs spend a lot of time sitting on their bottoms and it could be causing her a lot of pain. It could be infected anal glands or something that she has tried to pass through and it's got stuck and infected on the inside.
Hope you get it sorted out soon and keep us all informed!