Telemetry and LiveDashboard
summary
Phoenix 1.5 emits standard Telemetry events (phoenix.router_dispatch_stop, repo_query, LiveView lifecycle) and LiveDashboard wires a metrics module into the app by mounting its route so it calls telemetry.attach/4 for each metric. Metrics definitions live in a generated metrics module, handlers format measurements (summary, counter), store state in ETS and push updates to the LiveView UI. Use tags, telemetry_span, and reporters like StatsD, Prometheus or Datadog for alerts and rich aggregation.
AI-written summary · about
chapters (20)
- 0:00Start
- 1:35Telemetry and Observability
- 4:04Observability Pipeline in Elixir
- 4:23Attaching the Event to a Handler
- 6:15Event Execution
- 10:05Telemetry Metrics Module
- 12:15Telemetry Metrics Library
- 15:22Live Dashboard as a Telemetry Reporter
- 16:41Attaching Events in Live Dashboard
- 17:14Live Dashboard Macro
- 22:34What Does Telemetry Expose in Our Elixir
- 22:44Phoenix Telemetry Events
- 23:07Phoenix Endpoint Render Errors Event
- 23:23Socket and Channel Interactions
- 23:46Phoenix Channel Events
- 24:38Live View Events
- 25:14Ecto Telemetry Events
- 26:31Tags and Tag Values
- 31:34Spanning
- 35:38Closing Words
related talks
36mTelemetry and LiveDashboard
39mTelemetry ...and metrics for all
27mTelemetry: By The Numbers
39mObservable Elixir
19mTelemetry is Not Having to Hope
13mTelemetry Over Events: Developer-Friendly Instrumentation at American Express Mobile
39mMonitoring Elixir With OpenTelemetry
42mOpenTelemetry Metrics 101
