Skip to content

Commit

Permalink
Anonymize Com caller value used by telemetry (microsoft#1998)
Browse files Browse the repository at this point in the history
  • Loading branch information
yao-msft authored Mar 4, 2022
1 parent 0a6cb30 commit 5f9f6ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/AppInstallerCommonCore/AppInstallerTelemetry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5f9f6ec

Please sign in to comment.