mix timeless_phoenix.gen_demo (timeless_phoenix v1.5.9)

Copy Markdown View Source

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 200

Options

  • --interval — Traffic generation interval in milliseconds (default: 2000)

What it does

  1. Creates lib/<app>/demo_traffic.ex with a GenServer that spawns varied simulated activity every 2 seconds
  2. Adds a Task.Supervisor and the DemoTraffic module to your application's supervision tree