This added telemetry isn't needed (#6363)

This commit is contained in:
Ryan Lai 2021-01-15 16:36:59 -08:00 committed by GitHub
parent eab164e1a5
commit 4db4982a5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 14 deletions

View file

@ -155,9 +155,6 @@ void LearningModelSession::Initialize() {
// Cache the constructed session
engine_ = engine;
// Log to telemetry that WinML LearningModelSession was successful
telemetry_helper.LogWinMLSessionCreated();
}
wfc::IPropertySet

View file

@ -83,7 +83,6 @@ class WinMLTelemetryHelper {
}
void LogWinMLShutDown();
void LogWinMLSessionCreated();
void LogWinMLSuspended();
void LogRuntimeError(HRESULT hr, std::string message, PCSTR file, PCSTR function, int line);
void LogRuntimeError(HRESULT hr, PCSTR message, PCSTR file, PCSTR function, int line);

View file

@ -34,16 +34,6 @@ void WinMLTelemetryHelper::LogWinMLSuspended() {
TraceLoggingInt32(runtime_session_id_, "runtimeSessionId"));
}
void WinMLTelemetryHelper::LogWinMLSessionCreated() {
WinMLTraceLoggingWrite(
provider_,
"WinMLSessionCreated",
TraceLoggingKeyword(WINML_PROVIDER_KEYWORD_DEFAULT),
TelemetryPrivacyDataTag(PDT_ProductAndServiceUsage),
TraceLoggingString("LearningModelSession successfully created.", "message"),
TraceLoggingKeyword(MICROSOFT_KEYWORD_MEASURES));
}
void WinMLTelemetryHelper::LogRuntimeError(HRESULT hr, PCSTR message, PCSTR file, PCSTR function, int line) {
if (!telemetry_enabled_)
return;