Skip to content

Latest commit

 

History

History
48 lines (25 loc) · 1.45 KB

stats_hero_worker_sup.md

File metadata and controls

48 lines (25 loc) · 1.45 KB

Module stats_hero_worker_sup

Behaviours: supervisor.

Authors: Seth Falcon (seth@chef.io), Kevin Smith (kevin@chef.io), Oliver Ferrigni (oliver@chef.io).

Function Index

init/1
new_worker/1Start a new stats_hero worker.
start_link/0

Function Details

init/1

init(X1) -> any()

new_worker/1

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/0

start_link() -> any()