Skip to content

Fix WSLc telemetry to fire critical events#40754

Merged
craigloewen-msft merged 2 commits into
masterfrom
user/crloewen/critical-telemetry-fix
Jun 10, 2026
Merged

Fix WSLc telemetry to fire critical events#40754
craigloewen-msft merged 2 commits into
masterfrom
user/crloewen/critical-telemetry-fix

Conversation

@craigloewen-msft

Copy link
Copy Markdown
Member

Changed WSLc events to be the exact same as the "ExecCritical" event. Right now it is showing up as "Measure+Critical" this change should make it show up just as "Critical"

Copilot AI review requested due to automatic review settings June 9, 2026 15:47
@craigloewen-msft craigloewen-msft requested a review from a team as a code owner June 9, 2026 15:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates WSLC session/container creation logging so the emitted TraceLogging events are categorized as CRITICAL_DATA (not MEASURES+CRITICAL), aligning the keywording with the existing ExecCritical pattern.

Changes:

  • Replace WSL_LOG_TELEMETRY(...) with WSL_LOG(...) for WSLCCreateContainer and WSLCCreateSession to avoid automatically adding the MICROSOFT_KEYWORD_MEASURES keyword.
  • Change the events’ privacy tag usage to be passed explicitly via TelemetryPrivacyDataTag(...).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/windows/wslcsession/WSLCSession.cpp Switches container creation event from WSL_LOG_TELEMETRY to WSL_LOG to remove the MEASURES keyword.
src/windows/service/exe/WSLCSessionManager.cpp Switches session creation event from WSL_LOG_TELEMETRY to WSL_LOG to remove the MEASURES keyword.

Comment thread src/windows/wslcsession/WSLCSession.cpp
Comment thread src/windows/service/exe/WSLCSessionManager.cpp
OneBlue
OneBlue previously approved these changes Jun 9, 2026
Comment thread src/windows/service/exe/WSLCSessionManager.cpp
Comment thread src/windows/wslcsession/WSLCSession.cpp
Comment thread src/windows/service/exe/WSLCSessionManager.cpp
Copilot AI review requested due to automatic review settings June 9, 2026 19:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

Comment on lines +1702 to 1706
WSL_LOG(
"WSLCCreateContainer",
PDT_ProductAndServicePerformance,
TelemetryPrivacyDataTag(PDT_ProductAndServiceUsage),
TraceLoggingKeyword(MICROSOFT_KEYWORD_CRITICAL_DATA),
TraceLoggingValue(result, "Result"),
Comment on lines +325 to 329
WSL_LOG(
"WSLCCreateSession",
PDT_ProductAndServicePerformance,
TelemetryPrivacyDataTag(PDT_ProductAndServiceUsage),
TraceLoggingKeyword(MICROSOFT_KEYWORD_CRITICAL_DATA),
TraceLoggingValue(resolvedDisplayName.c_str(), "Name"),
@benhillis benhillis force-pushed the user/crloewen/critical-telemetry-fix branch from 0196fd8 to ecb9fe3 Compare June 9, 2026 23:12
@craigloewen-msft craigloewen-msft merged commit 2b7ce69 into master Jun 10, 2026
11 checks passed
@craigloewen-msft craigloewen-msft deleted the user/crloewen/critical-telemetry-fix branch June 10, 2026 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants