winget-cli

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

commit 5f9f6ecdd14a095744bf0608d343029aff10f47e
parent 0a6cb30ecfa15f9fe81b50496f5b1f13f0644af1
Author: yao-msft <50888816+yao-msft@users.noreply.github.com>
Date:   Fri,  4 Mar 2022 14:16:59 -0800

Anonymize Com caller value used by telemetry (#1998)


Diffstat:
Msrc/AppInstallerCommonCore/AppInstallerTelemetry.cpp | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/AppInstallerCommonCore/AppInstallerTelemetry.cpp b/src/AppInstallerCommonCore/AppInstallerTelemetry.cpp @@ -177,7 +177,9 @@ namespace AppInstaller::Logging void TelemetryTraceLogger::SetCaller(const std::string& caller) { - m_caller = caller; + auto callerUTF16 = Utility::ConvertToUTF16(caller); + auto anonCaller = AnonymizeString(callerUTF16); + m_caller = Utility::ConvertToUTF8(anonCaller); } void TelemetryTraceLogger::SetExecutionStage(uint32_t stage) noexcept