-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Use correct Subexecution id when working on multiple packages #1504
Use correct Subexecution id when working on multiple packages #1504
Conversation
@check-spelling-bot ReportUnrecognized words, please review:
Previously acknowledged words that are now absentATL Bluetooth contosa contosainstaller convertto doctordns DSL etail globals IInstalled Jaifroid JDKs mikefrobbins mytool Nieto powershellexplained xboxTo accept these unrecognized words as correct (and remove the previously acknowledged and now absent words), run the following commands... in a clone of the git@github.com:ashpatil-msft/winget-cli.git repository
In reply to: 926814080 |
packageRequest.Scope, | ||
subExecution.GetCurrentSubExecutionId()}; | ||
|
||
packagesToInstall.emplace_back(std::move(package)); |
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: Why change this? It isn't really a big deal perf-wise, but previously it was direct construction and now it is construct and move. #Resolved
|
||
// Use this subexecution id when installing this package so that | ||
// install telemetry is captured with the same sub execution id as other events in Search phase. | ||
uint32_t PackageSubExecutionId; |
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.
SubExecutionTelemetryScope(const SubExecutionTelemetryScope&) = delete; | ||
SubExecutionTelemetryScope& operator=(const SubExecutionTelemetryScope&) = delete; | ||
|
||
SubExecutionTelemetryScope(SubExecutionTelemetryScope&&) = default; | ||
SubExecutionTelemetryScope& operator=(SubExecutionTelemetryScope&&) = default; | ||
|
||
uint32_t GetCurrentSubExecutionId(); |
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.
Issue:
Fix:
Tests:
Microsoft Reviewers: Open in CodeFlow