Are they never tracked or just sometimes? Is it particular functions or random?
and this is strange for me.
I have few DBs with the same function (copy -> paste), in one DB they are tracked (visible in pg_stat_user_functions) in other not. In DB where some functions are not tracked, others are visible - no issue. I cannot find any logical connection between function structure and visibility in pg_stat_user_functions.