Skip to content
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

Don't treat the COM subcommands as distinct for telemetry #2792

Merged
merged 2 commits into from
Dec 22, 2022

Conversation

JohnMcPMS
Copy link
Member

@JohnMcPMS JohnMcPMS commented Dec 21, 2022

Issue

Calls to COM install/upgrade were logging the distinct steps (download/install) as separate commands under the same activity. This was leading to an incorrect success metric due to the method of processing.

Change

This change treats the OrchestratorQueueItem as the command for telemetry purposes. This aligns with the winget.exe method of counting success/failure. It also moves to use the same command names as winget.exe, making it easier to join/slice the data.

Validation

Using an ETW event tracer, manually verified the current bad state. Then verified that the change produces a single start/stop pair under the same activity for an install.

Microsoft Reviewers: Open in CodeFlow

@JohnMcPMS JohnMcPMS requested a review from a team as a code owner December 21, 2022 19:59
Copy link
Member

@florelis florelis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the branch called actwovity? I can't help but add owo in my mind when I read it...

src/AppInstallerCLICore/ContextOrchestrator.cpp Outdated Show resolved Hide resolved
src/AppInstallerCLICore/ContextOrchestrator.cpp Outdated Show resolved Hide resolved
@JohnMcPMS
Copy link
Member Author

Why is the branch called actwovity? I can't help but add owo in my mind when I read it...

There were two activities, and I didn't need a particularly helpful name since this was a short fix.

@JohnMcPMS JohnMcPMS merged commit 297c9f1 into microsoft:master Dec 22, 2022
@JohnMcPMS JohnMcPMS deleted the actwovity branch December 22, 2022 00:04
@denelon denelon modified the milestone: v2.0-Client Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants