Packages

Library for tracking HTTP status code rates and service health monitoring

Current section

Files

Jump to
status_code_tracker lib status_code_tracker application.ex
Raw

lib/status_code_tracker/application.ex

defmodule StatusCodeTracker.Application do
use Application
def start(_type, _args) do
opts = [strategy: :one_for_one, name: StatusCodeTracker.Supervisor]
Supervisor.start_link(children(), opts)
end
if Mix.env() == :test do
def children do
[]
end
else
def children do
[
{StatusCodeTracker.Server, []}
]
end
end
end