Installs TimelessPhoenix into your application.
Adds TimelessPhoenix to your supervision tree, configures your Phoenix router with all observability dashboard pages, and updates the formatter.
Usage
mix igniter.install timeless_phoenix
mix igniter.install timeless_phoenix --storage memoryOptions
--storage—disk(default) ormemory. Disk mode persists logs and traces with indexing and retention management. Memory mode keeps them in RAM only and loses them on restart. Metrics are always persisted to disk.--http— Enable HTTP ingest/query endpoints for metrics, logs, and traces.--http-metrics— Enable only the metrics HTTP endpoint.--http-logs— Enable only the logs HTTP endpoint.--http-traces— Enable only the traces HTTP endpoint.--metrics-port— Port for the metrics HTTP endpoint (default 8428).--logs-port— Port for the logs HTTP endpoint (default 9428).--traces-port— Port for the traces HTTP endpoint (default 10428).
What it does
- Adds
{TimelessPhoenix, ...}to your application's supervision tree (logs, traces, and metrics persist to disk by default) - Configures OpenTelemetry to export spans to TimelessTraces
- Adds
import TimelessPhoenix.Routerto your Phoenix router - Adds
timeless_phoenix_dashboard "/dashboard"to your router's browser scope - Adds
:timeless_phoenixto your.formatter.exsimport_deps - Removes the default
live_dashboardroute (avoids live_session conflict)