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

Link to this function

find_supervisors(application, pid)

View Source

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

Link to this function

max_crashes(application, pid)

View Source

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)

Link to this function

restart_settings(supervisor_pid)

View Source

Get the restart settings for a supervisor

Example return value: %{max_restarts: 3, max_seconds: 5}