Inline error tracker notification code

As we don't need the Discord functionality which brings quite a lot of
extra libraries/code
This commit is contained in:
Claudio Ortolina
2026-03-04 17:19:14 +00:00
parent ed1dd2b440
commit ad9bcd8481
8 changed files with 433 additions and 12 deletions
+3
View File
@@ -27,6 +27,7 @@ Key capabilities:
```
MusicLibrary.Application (one_for_one)
├── MusicLibrary.ErrorNotifier # Telemetry-driven error email notifications
├── MusicLibrary.Vault # Cloak encryption vault
├── MusicLibrary.Repo # Main SQLite repo
├── MusicLibrary.BackgroundRepo # Oban SQLite repo (separate DB)
@@ -122,6 +123,8 @@ Last.fm schemas (separate, not Ecto-persisted to main DB):
| `RecordChat` | Chat implementation for records (OpenAI streaming, web search enabled) |
| `ArtistChat` | Chat implementation for artists (OpenAI streaming, uses Wikipedia/artist context) |
| `Country` | Country code (alpha-2, alpha-3, subdivision, IETF) to flag emoji conversion |
| `ErrorNotifier` | GenServer: attaches to ErrorTracker telemetry, throttles repeated errors, dispatches email notifications |
| `ErrorNotifier.Email` | Builds and sends Swoosh error notification emails with stack trace formatting |
| `FormatNumber` | Number formatting utility |
---