diff --git a/diagnostics/wsl.wprp b/diagnostics/wsl.wprp index 2830851..bf509df 100644 --- a/diagnostics/wsl.wprp +++ b/diagnostics/wsl.wprp @@ -11,6 +11,7 @@ + diff --git a/src/windows/common/WslTelemetry.cpp b/src/windows/common/WslTelemetry.cpp index 0d91eaa..766513d 100644 --- a/src/windows/common/WslTelemetry.cpp +++ b/src/windows/common/WslTelemetry.cpp @@ -32,6 +32,13 @@ TRACELOGGING_DEFINE_PROVIDER( (0xb99cdb5a, 0x039c, 0x5046, 0xe6, 0x72, 0x1a, 0x0d, 0xe0, 0xa4, 0x02, 0x11), TraceLoggingOptionMicrosoftTelemetry()); +TRACELOGGING_DEFINE_PROVIDER( + WslaServiceTelemetryProvider, + "Microsoft.Windows.Wsla", + // {0383CE62-8F86-4766-AFB2-9D66A7FB1E90} + (0x383ce62, 0x8f86, 0x4766, 0xaf, 0xb2, 0x9d, 0x66, 0xa7, 0xfb, 0x1e, 0x90), + TraceLoggingOptionMicrosoftTelemetry()); + #ifdef DEBUG #define HRESULT_STRING_VALUE \ , TraceLoggingValue(wsl::windows::common::wslutil::ErrorCodeToString(failure->hr).c_str(), "HRESULTString") diff --git a/src/windows/common/WslTelemetry.h b/src/windows/common/WslTelemetry.h index 735596e..209dfd6 100644 --- a/src/windows/common/WslTelemetry.h +++ b/src/windows/common/WslTelemetry.h @@ -28,6 +28,7 @@ extern "C" { #endif TRACELOGGING_DECLARE_PROVIDER(LxssTelemetryProvider); TRACELOGGING_DECLARE_PROVIDER(WslServiceTelemetryProvider); +TRACELOGGING_DECLARE_PROVIDER(WslaServiceTelemetryProvider); #ifdef __cplusplus } #endif diff --git a/src/windows/wslaservice/exe/ServiceMain.cpp b/src/windows/wslaservice/exe/ServiceMain.cpp index 7a78656..66218a4 100644 --- a/src/windows/wslaservice/exe/ServiceMain.cpp +++ b/src/windows/wslaservice/exe/ServiceMain.cpp @@ -67,7 +67,7 @@ try // Initialize telemetry. // TODO-WSLA: Create a dedicated WSLA provider - WslTraceLoggingInitialize(WslServiceTelemetryProvider, !wsl::shared::OfficialBuild); + WslTraceLoggingInitialize(WslaServiceTelemetryProvider, !wsl::shared::OfficialBuild); WSL_LOG("Service starting", TraceLoggingLevel(WINEVENT_LEVEL_INFO));