Once we have recording of Hiera keys in place for Impact Analysis, we should extend this to also record function invocations and template usage, and send these along with the Hiera keys to PDB.
Thanks, I'll see what I can do. The initial version might have to collect everything, but we can make it smarter if that winds up being a huge amount of extraneous data. I'm kind of hoping since we're just keeping a count for each unique function, that it won't actually be that much data.
Note that users can override a function by sticking a Puppet Language variant of the function definition in their site.pp with the same name as any other function (in puppet, in a module etc.).