phoenixframework / phoenix_live_dashboard

Realtime dashboard with metrics, request logging, plus storage, OS and VM insights
MIT License
1.99k stars 182 forks source link

Fix: Add ETS buffering for telemetry events in TelemetryListener #450

Open techvoyagerX opened 3 days ago

techvoyagerX commented 3 days ago

This PR improves the handling of high event rates in the Phoenix Live Dashboard by introducing an ETS-based buffering system in TelemetryListener. It ensures that events are buffered efficiently and prevents system overload by trimming the buffer when necessary.

Key changes:

These updates ensure the metrics page continues to function smoothly even under high telemetry event loads.

josevalim commented 3 days ago

Thank you for the PR but I am confused. We never read from the table. How does this help with buffering?