If there is no name sharing and being anonymous, someone else may use your stories to help better their lives.
Not cool if it is a local pastor who is sharing a local person's story. I was taught that your conversation with your local pastor is between you, him and you god. A pastor can sin by sharing your sins with others.
"In the Catholic Church, the Seal of Confession (or Seal of the Confessional) is the absolute duty of priests not to disclose anything that they learn from penitents during the course of the Sacrament of Penance (confession). Even where the seal of confession does not strictly apply – where there is no specific serious sin confessed for the purpose of receiving absolution – priests have a serious obligation not to cause scandal by the way they speak"
https://en.m.wikipedia.org/wiki/Seal_of_the_Confessional_in_the_Catholic_Churchbut cool if such pastor is a guest in another town so of speak where being anonymous is really being anonymous.
Just like a shrink or fortune teller. If they keep it vague, you might think they are talking to you, about you and there is a science behind it. If I'm doing a public speaking, I'll win if I can catch your attention and no other than building up a story to stop you from falling asleep. I am not really talking about you but if you can take today's lesson and apply it to your life then my job as a pastor will be a success. You can't be a preacher if you don't preach or your audiences refuses to listen.