diff --git a/src/winapp-CLI/WinApp.Cli.Tests/ProjectContextCommandTelemetryTests.cs b/src/winapp-CLI/WinApp.Cli.Tests/ProjectContextCommandTelemetryTests.cs index 2eb33db8e..b2b3a3e85 100644 --- a/src/winapp-CLI/WinApp.Cli.Tests/ProjectContextCommandTelemetryTests.cs +++ b/src/winapp-CLI/WinApp.Cli.Tests/ProjectContextCommandTelemetryTests.cs @@ -97,14 +97,14 @@ public async Task Init_ExplicitNestedDirectory_PreservesAncestorConfidence() } [TestMethod] - public void EnabledTelemetry_EmitsProjectContextAtMeasureLevel() + public void EnabledTelemetry_EmitsProjectContextAtCriticalLevel() { ProjectContextEvent.Log( "restore", ProjectContext.Unknown(ProjectTargetKind.Workspace)); Assert.AreEqual("ProjectContext_Event", _telemetry.EventNames.Single()); - Assert.AreEqual(LogLevel.Measure, _telemetry.Levels.Single()); + Assert.AreEqual(LogLevel.Critical, _telemetry.Levels.Single()); } [TestMethod] diff --git a/src/winapp-CLI/WinApp.Cli/Telemetry/Events/ProjectContextEvent.cs b/src/winapp-CLI/WinApp.Cli/Telemetry/Events/ProjectContextEvent.cs index f09fa57ed..279a9a0d3 100644 --- a/src/winapp-CLI/WinApp.Cli/Telemetry/Events/ProjectContextEvent.cs +++ b/src/winapp-CLI/WinApp.Cli/Telemetry/Events/ProjectContextEvent.cs @@ -68,7 +68,7 @@ public static void Log(string command, ProjectContext context) telemetry.Log( "ProjectContext_Event", - LogLevel.Measure, + LogLevel.Critical, new ProjectContextEvent(command, context), TelemetryCorrelation.CurrentId); } @@ -83,7 +83,7 @@ public static void Log(string command, Func createContext) telemetry.Log( "ProjectContext_Event", - LogLevel.Measure, + LogLevel.Critical, new ProjectContextEvent(command, createContext()), TelemetryCorrelation.CurrentId); }