View Source DataTracer.SupervisorUtils (data_tracer v0.1.1)
Link to this section Summary
Functions
Find the chain of parent superivors for a given process
Find the max number of crashes that the given PID can have before it brings down the entire application.
Get the restart settings for a supervisor
Link to this section Functions
Find the chain of parent superivors for a given process
Example return value: {:ok, [#PID<0.275.0>, #PID<0.276.0>, #PID<0.283.0>]}
Returns :error
if unable to find the supervisors for the process
Find the max number of crashes that the given PID can have before it brings down the entire application.
NOTE: Currently assumes all the crashes happen at the same time (i.e.
max_seconds
is ignored)
Get the restart settings for a supervisor
Example return value: %{max_restarts: 3, max_seconds: 5}