I have a number of different notifications, each identified by an id (example “ticket_closed”).
This ID can later be used to select the right E-Mail Template for the right language etc.
So basically, the recipient, the notification id and some metadata is stored as an Oban Job,
and the E-Mail is sent from there.
I would love to automatically extract all the available notification IDs, for 2 reasons:
- I could then check if I have an E-Mail template for each ID and
- I can check if any references to notification IDs are actually referring to existing IDs
I am pretty sure this is a rather simple task with mix/elixir, but so far I could not figure it out.
How could I extract all calls to a function and the functions n-th argument?
I found the tracers:
compile options, however I am not sure how to add a Tracer inside a project that is meant to trace the project itselft (and would therefore needs itself compiled before it can compile itself?)