mirror of
https://github.com/woodchen-ink/proxy-go.git
synced 2025-07-18 08:31:55 +08:00
- Introduced safe type conversion functions to handle nil values gracefully, ensuring metrics integrity. - Updated the MetricsHandler to return default values for metrics when stats retrieval fails, enhancing reliability. - Streamlined the metrics initialization process by ensuring all necessary fields are populated, even in error scenarios. - Improved memory usage reporting and response time metrics for better performance insights. These changes enhance the robustness of the metrics system, ensuring accurate data handling and improved monitoring capabilities.