-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add Training event Exporter #1451
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1451 +/- ##
==========================================
+ Coverage 81.61% 82.14% +0.52%
==========================================
Files 240 253 +13
Lines 24062 25288 +1226
==========================================
+ Hits 19638 20772 +1134
- Misses 4424 4516 +92 ☔ View full report in Codecov by Sentry. |
add test emitter
…ization - Introduce a new abstract `start()` method in the EventExporter base class - Implement `start()` method for AsyncExporter to control thread initialization - Add `start()` method to TextFileExporter and ConsoleExporter - Modify default exporter initialization to call `start()` method - Update tests to call `start()` before using AsyncExporter
- Update Config class to inherit from Singleton - Remove global config and logger getter functions - Modify error_handler, exporter, and emitter to use Config.singleton_instance() - Rename global logger variables for consistency - Simplify thread-safe singleton access for configuration
- Rename `DLRoverMaster` to `DLRoverMasterEvent` - Rename `DLRoverAgent` to `DLRoverAgentEvent` - Rename `DLRoverCommon` to `DLRoverCommonEvent` - Update import statements and references across multiple files - Update documentation to reflect new class names
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What changes were proposed in this pull request?
This PR introduces a Training Event Exporter SDK that enables training processes and DLRover processes to export key events to log files in a standardized format.
Why are the changes needed?
DLRover requires detailed training process information to make informed fault repair decisions. This information includes but is not limited to:
The SDK provides a standardized way to collect and export these training events, making it easier for DLRover to monitor and manage training processes effectively.
Does this PR introduce any user-facing change?
No, this is an internal SDK implementation that doesn't affect end users directly.
How was this patch tested?