diff --git a/winml/lib/Api/LearningModelSession.cpp b/winml/lib/Api/LearningModelSession.cpp index b5699844b1..949e5683f7 100644 --- a/winml/lib/Api/LearningModelSession.cpp +++ b/winml/lib/Api/LearningModelSession.cpp @@ -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 diff --git a/winml/lib/Common/inc/WinMLTelemetryHelper.h b/winml/lib/Common/inc/WinMLTelemetryHelper.h index 9d3af9ac4a..87eabaa875 100644 --- a/winml/lib/Common/inc/WinMLTelemetryHelper.h +++ b/winml/lib/Common/inc/WinMLTelemetryHelper.h @@ -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); diff --git a/winml/lib/Telemetry/WinMLTelemetryHelper.cpp b/winml/lib/Telemetry/WinMLTelemetryHelper.cpp index 6bf24b2fdc..09681fa4ca 100644 --- a/winml/lib/Telemetry/WinMLTelemetryHelper.cpp +++ b/winml/lib/Telemetry/WinMLTelemetryHelper.cpp @@ -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;