Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/System.Management.Automation/utils/Telemetry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,7 @@ static ApplicationInsightsTelemetry()
"Microsoft.PowerShell.Management",
"Microsoft.PowerShell.ODataUtils",
"Microsoft.PowerShell.Operation.Validation",
"Microsoft.PowerShell.PSResourceGet",
"Microsoft.PowerShell.RemotingTools",
"Microsoft.PowerShell.SecretManagement",
"Microsoft.PowerShell.SecretStore",
Expand Down Expand Up @@ -806,7 +807,7 @@ internal static void SendPSCoreStartupTelemetry(string mode, double parametersUs
// This is the payload for the parameter data which is sent as a metric.
var parameters = new Dictionary<string, double>();

// The variable POWERSHELL_DISTRIBUTION_CHANNEL is set in our docker images and
// The variable POWERSHELL_DISTRIBUTION_CHANNEL is set in our docker images and
// by various other environments. This allows us to track the actual docker OS as
// OSDescription provides only "linuxkit" which has limited usefulness.
var channel = Environment.GetEnvironmentVariable("POWERSHELL_DISTRIBUTION_CHANNEL");
Expand Down Expand Up @@ -900,7 +901,7 @@ private static Guid CreateUniqueIdentifierAndFile(string telemetryFilePath)
catch
{
// There was a problem in creating the directory for the file, do not attempt to create the file.
// We don't send telemetry here because there are valid reasons for the directory to not exist
// We don't send telemetry here because there are valid reasons for the directory to not exist
// and not be able to be created.
attemptFileCreation = false;
}
Expand Down