Current section

Files

Jump to
new_relic_agent lib new_relic transaction supervisor.ex
Raw

lib/new_relic/transaction/supervisor.ex

defmodule NewRelic.Transaction.Supervisor do
use Supervisor
@moduledoc false
def start_link do
Supervisor.start_link(__MODULE__, [])
end
def init(_) do
children = [
supervisor(Task.Supervisor, [[name: NewRelic.Transaction.TaskSupervisor]]),
worker(NewRelic.Transaction.Monitor, []),
worker(NewRelic.Transaction.Reporter, [])
]
supervise(children, strategy: :one_for_one)
end
end