mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-03-21 17:41:52 +00:00
TODO: - [x] Cluster formation for all API and web nodes - [x] Injest Docker logs to Stackdriver - [x] Fix assets building for prod To finish later: - [ ] Structured logging: https://issuetracker.google.com/issues/285950891 - [ ] Better networking policy (eg. use public postmark ranges and deny all unwanted egress) - [ ] OpenTelemetry collector for Google Stackdriver - [ ] LoggerJSON.Plug integration --------- Signed-off-by: Andrew Dryga <andrew@dryga.com> Co-authored-by: Jamil <jamilbk@users.noreply.github.com>
26 lines
561 B
Elixir
26 lines
561 B
Elixir
defmodule Web.Application do
|
|
use Application
|
|
|
|
@impl true
|
|
def start(_type, _args) do
|
|
_ = OpentelemetryLiveView.setup()
|
|
_ = :opentelemetry_cowboy.setup()
|
|
_ = OpentelemetryPhoenix.setup(adapter: :cowboy2)
|
|
|
|
children = [
|
|
Web.Telemetry,
|
|
{Phoenix.PubSub, name: Web.PubSub},
|
|
Web.Endpoint
|
|
]
|
|
|
|
opts = [strategy: :one_for_one, name: Web.Supervisor]
|
|
Supervisor.start_link(children, opts)
|
|
end
|
|
|
|
@impl true
|
|
def config_change(changed, _new, removed) do
|
|
Web.Endpoint.config_change(changed, removed)
|
|
:ok
|
|
end
|
|
end
|