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