3 instantiations of TelemetryClient
dotnet (3)
Commands\Hidden\InternalReportInstallSuccess\InternalReportInstallSuccessCommand.cs (1)
45
_telemetry = new
TelemetryClient
(sessionId);
Commands\MSBuild\MSBuildLogger.cs (1)
124
_ = new
TelemetryClient
(sessionId);
Program.cs (1)
39
TelemetryInstance = new
TelemetryClient
();
17 references to TelemetryClient
dotnet (17)
Commands\Hidden\InternalReportInstallSuccess\InternalReportInstallSuccessCommand.cs (1)
40
private readonly
TelemetryClient
_telemetry;
Commands\MSBuild\MSBuildForwardingApp.cs (2)
38
if (
TelemetryClient
.CurrentSessionId != null)
115
EnvironmentVariable(EnvironmentVariableNames.DOTNET_CLI_TELEMETRY_SESSIONID,
TelemetryClient
.CurrentSessionId);
Commands\MSBuild\MSBuildLogger.cs (9)
122
if (!
TelemetryClient
.IsInitialized)
126
TelemetryClient
.RegisterProviderShutdownOnProcessExit();
129
_telemetry =
TelemetryClient
.Instance;
212
??
TelemetryClient
.GetParentActivityContext()
213
??
TelemetryClient
.ParentActivityContext;
374
if (telemetry is
TelemetryClient
telemetryClient)
413
if (_telemetry is
TelemetryClient
telemetryClient)
420
TelemetryClient
.ForceFlushProviders();
428
TelemetryClient
.WriteLogIfNecessary();
Program.cs (4)
44
s_mainActivity = Activities.Source.CreateActivity("main",
TelemetryClient
.ActivityKind,
TelemetryClient
.ParentActivityContext)
128
TelemetryClient
.WriteLogIfNecessary();
216
TelemetryClient
.FlushProviders();
Telemetry\TelemetryClient.cs (1)
87
internal static
TelemetryClient
? Instance { get; private set; }