-
Notifications
You must be signed in to change notification settings - Fork 1.5k
logging: add more settings to vm create begin / end events. #13412
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
Conversation
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.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
0832c39 to
00157f5
Compare
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.
Pull Request Overview
This PR enhances VM creation event logging by adding four additional configuration settings to the trace data for better diagnostics. The changes include adding EnableDebugShell, KernelModulesList, MaximumMemorySizeBytes, and MaximumProcessorCount to the telemetry output.
- Updated the CONFIG_TELEMETRY macro to include the new logging fields
- Added a new T_STRING_VECTOR macro for logging vector collections as comma-separated strings
- Fixed naming consistency for LoadKernelModulesPresence variable
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/windows/common/WslCoreConfig.h | Updated telemetry macros and CONFIG_TELEMETRY definition to include new fields, fixed variable naming |
| src/windows/common/WslCoreConfig.cpp | Updated variable references to match naming fix and made MaximumProcessorCount a stored field |
faa12c5 to
f7bc9fa
Compare
src/windows/common/WslCoreConfig.cpp
Outdated
| { | ||
| if (!e.empty()) | ||
| { | ||
| kernelModules.emplace_back(e); |
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.
nit: we could maintain the std::move here to avoid copying e
f7bc9fa to
5663d3a
Compare
While looking at some trace data I realized there are some additional VM settings that could be added to improve our diagnostic story. This PR adds the following to the createvm begin / end events: