Behaviours: supervisor
.
Authors: Seth Falcon (seth@chef.io
), Kevin Smith (kevin@chef.io
), Oliver Ferrigni (oliver@chef.io
).
init/1 | |
new_worker/1 | Start a new stats_hero worker. |
start_link/0 |
init(X1) -> any()
new_worker(InputConfig) -> any()
Start a new stats_hero
worker.Config
is a proplist with keys: request_label,
request_action, estatsd_host, estatsd_port, upstream_prefixes, my_app, and
request_id. {parent, self()} added to Config as this function is called from the
caller's process space. The stats_hero worker will monitor the caller to avoid
possible process leaks if the caller crashes before cleaning up the worker.
See also: stats_hero:start_link/1.
start_link() -> any()