Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/windows/service/exe/WSLCSessionManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,16 @@ void WSLCSessionManagerImpl::CreateSession(const WSLCSessionSettings* Settings,

// This telemetry event is used to keep track of session creation performance (via CreationTimeMs) and failure reasons (via Result).

WSL_LOG_TELEMETRY(
WSL_LOG(
"WSLCCreateSession",
PDT_ProductAndServiceUsage,
TelemetryPrivacyDataTag(PDT_ProductAndServicePerformance),
TraceLoggingKeyword(MICROSOFT_KEYWORD_CRITICAL_DATA),
TraceLoggingValue(Settings->DisplayName, "Name"),
TraceLoggingValue(stopWatch.ElapsedMilliseconds(), "CreationTimeMs"),
TraceLoggingValue(creationResult, "Result"),
TraceLoggingValue(tokenInfo.Elevated, "Elevated"),
TraceLoggingValue(static_cast<uint32_t>(Flags), "Flags"));
TraceLoggingValue(static_cast<uint32_t>(Flags), "Flags"),
TraceLoggingLevel(WINEVENT_LEVEL_INFO));

THROW_IF_FAILED_MSG(creationResult, "Failed to create session: %ls", Settings->DisplayName);
}
Expand Down
Loading