51 references to KnownTelemetry
Microsoft.Build (26)
BackEnd\BuildManager\BuildManager.cs (4)
510_buildTelemetry = KnownTelemetry.PartialBuildTelemetry; 513KnownTelemetry.PartialBuildTelemetry = null; 577loggingService.LogTelemetry(buildEventContext: null, KnownTelemetry.LoggingConfigurationTelemetry.EventName, KnownTelemetry.LoggingConfigurationTelemetry.GetProperties());
BackEnd\Client\MSBuildClient.cs (8)
177if (KnownTelemetry.PartialBuildTelemetry != null) 179KnownTelemetry.PartialBuildTelemetry.InitialServerState = serverIsAlreadyRunning ? "hot" : "cold"; 518Debug.Assert(KnownTelemetry.PartialBuildTelemetry == null || KnownTelemetry.PartialBuildTelemetry.StartAt.HasValue, "BuildTelemetry.StartAt was not initialized!"); 520PartialBuildTelemetry? partialBuildTelemetry = KnownTelemetry.PartialBuildTelemetry == null 523startedAt: KnownTelemetry.PartialBuildTelemetry.StartAt.GetValueOrDefault(), 524initialServerState: KnownTelemetry.PartialBuildTelemetry.InitialServerState, 525serverFallbackReason: KnownTelemetry.PartialBuildTelemetry.ServerFallbackReason);
BackEnd\Node\OutOfProcServerNode.cs (1)
381BuildTelemetry buildTelemetry = KnownTelemetry.PartialBuildTelemetry ??= new BuildTelemetry();
BuildCheck\Infrastructure\CheckContext\CheckLoggingContext.cs (2)
47var telemetryTransportData = KnownTelemetry.BuildCheckTelemetry.ProcessCustomCheckLoadingFailure(assemblyName, exception); 53foreach ((string, IDictionary<string, string>) telemetryTransportData in KnownTelemetry.BuildCheckTelemetry.ProcessBuildCheckTracingData(data))
Logging\BinaryLogger\BinaryLogger.cs (2)
271KnownTelemetry.LoggingConfigurationTelemetry.BinaryLogger = true; 457KnownTelemetry.LoggingConfigurationTelemetry.BinaryLoggerUsedDefaultName = FilePath == "msbuild.binlog";
Logging\ConsoleLogger.cs (6)
165KnownTelemetry.LoggingConfigurationTelemetry.FileLoggerType = "serial"; 169KnownTelemetry.LoggingConfigurationTelemetry.ConsoleLoggerType = "serial"; 177KnownTelemetry.LoggingConfigurationTelemetry.FileLoggerType = "parallel"; 181KnownTelemetry.LoggingConfigurationTelemetry.ConsoleLoggerType = "parallel"; 363KnownTelemetry.LoggingConfigurationTelemetry.ConsoleLogger = true; 364KnownTelemetry.LoggingConfigurationTelemetry.ConsoleLoggerVerbosity = Verbosity.ToString();
Logging\FileLogger.cs (3)
91KnownTelemetry.LoggingConfigurationTelemetry.FileLoggersCount++; 92KnownTelemetry.LoggingConfigurationTelemetry.FileLogger = true; 93KnownTelemetry.LoggingConfigurationTelemetry.FileLoggerVerbosity = Verbosity.ToString();
Microsoft.Build.Engine.UnitTests (6)
BackEnd\KnownTelemetry_Tests.cs (5)
18KnownTelemetry.PartialBuildTelemetry = new BuildTelemetry(); 19KnownTelemetry.PartialBuildTelemetry = null; 21KnownTelemetry.PartialBuildTelemetry.ShouldBeNull(); 28KnownTelemetry.PartialBuildTelemetry = buildTelemetry; 30KnownTelemetry.PartialBuildTelemetry.ShouldBeSameAs(buildTelemetry);
BackEnd\LoggingConfigurationTelemetry_Tests.cs (1)
19KnownTelemetry.LoggingConfigurationTelemetry.ShouldNotBeNull();
MSBuild (19)
MSBuildClientApp.cs (2)
81if (KnownTelemetry.PartialBuildTelemetry != null) 83KnownTelemetry.PartialBuildTelemetry.ServerFallbackReason = exitResult.MSBuildClientExitType.ToString();
XMake.cs (17)
250KnownTelemetry.PartialBuildTelemetry = new BuildTelemetry { StartAt = DateTime.UtcNow }; 334if (KnownTelemetry.PartialBuildTelemetry != null) 336KnownTelemetry.PartialBuildTelemetry.ServerFallbackReason = "Arguments"; 343if (KnownTelemetry.PartialBuildTelemetry != null) 345KnownTelemetry.PartialBuildTelemetry.ServerFallbackReason = "ErrorParsingCommandLine"; 656KnownTelemetry.PartialBuildTelemetry ??= new BuildTelemetry { StartAt = DateTime.UtcNow }; 2833return KnownTelemetry.LoggingConfigurationTelemetry.TerminalLogger = useTerminalLogger; 2886KnownTelemetry.LoggingConfigurationTelemetry.TerminalLoggerDefault = bool.FalseString; 2887KnownTelemetry.LoggingConfigurationTelemetry.TerminalLoggerDefaultSource = "msbuild"; 2893KnownTelemetry.LoggingConfigurationTelemetry.TerminalLoggerDefault = terminalLoggerDefault; 2894KnownTelemetry.LoggingConfigurationTelemetry.TerminalLoggerDefaultSource = string.IsNullOrWhiteSpace(dotnetCliEnvVar) ? "sdk" : "DOTNET_CLI_CONFIGURE_MSBUILD_TERMINAL_LOGGER"; 2918KnownTelemetry.LoggingConfigurationTelemetry.TerminalLoggerUserIntent = terminalLoggerArg ?? string.Empty; 2919KnownTelemetry.LoggingConfigurationTelemetry.TerminalLoggerUserIntentSource = "arg"; 2934KnownTelemetry.LoggingConfigurationTelemetry.TerminalLoggerUserIntent = terminalLoggerArg; 2935KnownTelemetry.LoggingConfigurationTelemetry.TerminalLoggerUserIntentSource = "MSBUILDTERMINALLOGGER"; 2943KnownTelemetry.LoggingConfigurationTelemetry.TerminalLoggerUserIntent = terminalLoggerArg; 2944KnownTelemetry.LoggingConfigurationTelemetry.TerminalLoggerUserIntentSource = "MSBUILDLIVELOGGER";