- Add health status change logging with detailed information
- Add optional webhook notifications for provider health changes
- Configurable via HEALTH_ALERT_WEBHOOK_URL environment variable
- Sends notifications when provider becomes unhealthy or recovers
- Broadcast health status events for real-time UI updates
- Integrate periodic health checks in heartbeat function
- Track provider stats (usage count, error count) in health logs
This improves observability by allowing operators to:
- Monitor provider health status changes in real-time
- Receive alerts via webhook when issues occur
- View detailed health statistics for troubleshooting