winget-cli

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 4a857ff5169c971ded2a4f8e0ad6929d2f4ccc4e
parent 0d30eb38e2472510b8a67429dd1db2607032819c
Author: mapill-msft <58245272+mapill-msft@users.noreply.github.com>
Date:   Tue, 24 Mar 2020 13:24:04 -0700

Fixing casing of event part c fields to avoid multiple columns in str… (#68)

* Fixing casing of event part c fields to avoid multiple columns in streams.

* One more column name fix.

* Fixing PR comments.
Diffstat:
Msrc/AppInstallerCLICore/Workflows/WorkflowBase.cpp | 2++
Msrc/AppInstallerCommonCore/AppInstallerTelemetry.cpp | 6+++---
2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/AppInstallerCLICore/Workflows/WorkflowBase.cpp b/src/AppInstallerCLICore/Workflows/WorkflowBase.cpp @@ -150,6 +150,8 @@ namespace AppInstaller::Workflow return false; } + auto app = m_searchResult.Matches.at(0).Application.get(); + Logging::Telemetry().LogAppFound(app->GetName(), app->GetId()); return true; } diff --git a/src/AppInstallerCommonCore/AppInstallerTelemetry.cpp b/src/AppInstallerCommonCore/AppInstallerTelemetry.cpp @@ -102,7 +102,7 @@ namespace AppInstaller::Logging "ClientStartup", GetActivityId(), nullptr, - TraceLoggingCountedString(version.c_str(), static_cast<ULONG>(version.size()), "version"), + TraceLoggingCountedString(version.c_str(), static_cast<ULONG>(version.size()), "Version"), TraceLoggingWideString(GetCommandLineW(), "commandlineargs"), TelemetryPrivacyDataTag(PDT_ProductAndServicePerformance|PDT_ProductAndServiceUsage), TraceLoggingKeyword(MICROSOFT_KEYWORD_CRITICAL_DATA)); @@ -199,8 +199,8 @@ namespace AppInstaller::Logging "AppFound", GetActivityId(), nullptr, - AICLI_TraceLoggingStringView(name, "AppName"), - AICLI_TraceLoggingStringView(id, "id"), + AICLI_TraceLoggingStringView(name, "Name"), + AICLI_TraceLoggingStringView(id, "Id"), TelemetryPrivacyDataTag(PDT_ProductAndServicePerformance | PDT_ProductAndServiceUsage), TraceLoggingKeyword(MICROSOFT_KEYWORD_CRITICAL_DATA)); }