mirror of
https://github.com/moeru-ai/airi.git
synced 2026-05-19 16:42:27 +00:00
- Updated the EngagementMetrics interface to use ObservableGauge for tracking active WebSocket connections. - Added detailed comments explaining the rationale for this change, highlighting the benefits of using a pull-based gauge over a delta-based counter. - Implemented the ObservableGauge in the createChatWsHandlers function, ensuring it accurately reflects the live count of active connections. - Removed the previous UpDownCounter logic to prevent issues with connection drift during process crashes or network interruptions. |
||
|---|---|---|
| .. | ||
| ai-context | ||