-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor collector to use ticker for periodic data recording and cleanup
- Replaced the sleep-based loop with a ticker in the collector function to record metrics data at regular intervals. - Added error handling and recovery mechanism to prevent panics in the collector function. - Updated the debug log message in the main function to include the current timestamp when debug mode is enabled.
- Loading branch information
1 parent
6bc31ee
commit 7e682b2
Showing
2 changed files
with
66 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters