How to implement dynamic supervision of child processes with Erlang OTP supervisor
In my erlang application I am trying to follow an approach similar to the one shown in the following part of the documentation, related to simple_one_for_one supervisors: https://www.erlang.org/doc/design_principles/sup_princ#simplified-one_for_one-supervisors . In my case I have a top level supervisor that launches the following one:
Error: invalid child spec in supervisor start_child function
In my erlang application i have a top level supervisor that monitors a cowboy server (gen_server):