PhoenixReplay.Application (PhoenixReplay v0.6.2)

Copy Markdown View Source

Starts PhoenixReplay's supervision tree.

The recording buffer table is created here rather than in a worker, so in-progress recordings survive any worker restart. The storage backend's own process, if it has one, starts first; see PhoenixReplay.Storage.child_spec/1. Changing :storage to a backend with a process takes an application restart. PhoenixReplay.Export.Supervisor runs video exports, starting what they need only with the first one. PhoenixReplay.Capture.Handlers attaches the telemetry and log handlers from the :collect and :logs configuration, so changing them takes an application restart.