Is there a way to figure out which action/filter invoked a function?

Sure, just use current_filter().

techhipbettruvabetnorabahisbahis forumutaraftarium24eduseduedueduedueduedueduseduedus