Generates a demo traffic module for observability dashboards.
Creates a GenServer that generates realistic background activity — simulated requests, DB queries, background jobs, cache operations, warnings, and errors — to populate your metrics, logs, and traces dashboards with interesting data.
Usage
mix timeless_phoenix.gen_demo
mix timeless_phoenix.gen_demo --interval 200Options
--interval— Traffic generation interval in milliseconds (default: 2000)
What it does
- Creates
lib/<app>/demo_traffic.exwith a GenServer that spawns varied simulated activity every 2 seconds - Adds a
Task.Supervisorand theDemoTrafficmodule to your application's supervision tree