zotonic/zotonic — comment on commit 4df1b8db0d7c77dee3c41e5895100ec1027d4e5d
File: modules/mod_failwhale/mod_failwhale.erl line 60
By mworrell:

You can also use pid_observe_dispatch_rewrite/4, then you have the Pid of the module in your args.