Current section

Files

Jump to
new_relic_agent lib new_relic application.ex
Raw

lib/new_relic/application.ex

defmodule NewRelic.Application do
use Application
@moduledoc false
def start(_type, _args) do
NewRelic.Init.run()
children = [
NewRelic.Logger,
NewRelic.AlwaysOnSupervisor,
NewRelic.EnabledSupervisorManager,
NewRelic.TelemetrySupervisor,
NewRelic.GracefulShutdown
]
Supervisor.start_link(children, strategy: :one_for_one, name: NewRelic.Supervisor)
end
end