Skip to content

Commit

Permalink
This added telemetry isn't needed (microsoft#6363)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Lai authored Jan 16, 2021
1 parent eab164e commit 4db4982
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
3 changes: 0 additions & 3 deletions winml/lib/Api/LearningModelSession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion winml/lib/Common/inc/WinMLTelemetryHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
10 changes: 0 additions & 10 deletions winml/lib/Telemetry/WinMLTelemetryHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4db4982

Please sign in to comment.