The difference between the tenses in your examples is not so obvious because of the final phrase "all of my life", which specifies a time period. So, you could use either of these in this context. These sentences essentially mean the same here. Neither is wrong. Both sound natural.
However, more generally, there are differences:
The present perfect is used for talking about something that happened at some unspecified point in the past, but that is not necessarily still continuing. It could be finished, it may have only happened once, and may never happen again, but it would depend on the context and what comes afterwards.
The present perfect continuous is used to talk about something that began happening at some unspecified point in the past, and which is still happening, regularly/repeatedly/continuously.
Here are some simpler examples which demonstrate the differences more clearly
I have eaten at Macdonalds. At some unspecified point in the past, I ate at Macdonalds, at least once.
I have been eating at Macdonalds. I began eating at Macdonalds at some unspecified point in the past, and I am still eating there regularly at present. There is a strong sense of a habitual/repeating behaviour here.