Leveling up your Phoenix Projects with OTP
summary
Shows how to replace ad hoc error logging with a stateful GenServer and OTP-based reporter that posts issues and comments to GitHub via Ten - Cat, implements both synchronous and async reporting with the same API, and enforces loadshed per OTP app (default max ~100 errors per window) to avoid storming GitHub. The built project "party foul" includes tests using a fake GitHub client, a live-demo integration with Phoenix routers/plug, and the demo works end to end.
AI-written summary · about
chapters (12)
- 0:00Intro
- 2:37Adding 10Cat
- 9:35Report
- 13:43Comments
- 27:48Error Reporter
- 28:03Inc Error
- 29:48Count Error
- 30:28Schedule History
- 30:58Test
- 32:28Prize
- 33:13API
- 33:53Github








