Current section

Files

Jump to
new_relic_agent lib new_relic enabled_supervisor_manager.ex
Raw

lib/new_relic/enabled_supervisor_manager.ex

defmodule NewRelic.EnabledSupervisorManager do
use DynamicSupervisor
@moduledoc false
def start_link() do
DynamicSupervisor.start_link(__MODULE__, :ok, name: __MODULE__)
end
def init(:ok) do
DynamicSupervisor.init(strategy: :one_for_one)
end
def start_child() do
DynamicSupervisor.start_child(__MODULE__, NewRelic.EnabledSupervisor)
end
end