Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/PowerShell/PowerShell.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2022-08-19 01:25:43 +0300
committerGitHub <noreply@github.com>2022-08-19 01:25:43 +0300
commit9e01a404d47d39a3c8b28278d8fede1ac053d96f (patch)
treedeb4dab405fd086cd7ff6f966a5fff89e801cd8b
parentff1d67980b043ef0655497b35a52380268a34cf9 (diff)
Update to use version 2.21.0 of Application Insights. (#17927)
-rw-r--r--src/System.Management.Automation/System.Management.Automation.csproj2
-rw-r--r--src/System.Management.Automation/utils/Telemetry.cs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/System.Management.Automation/System.Management.Automation.csproj b/src/System.Management.Automation/System.Management.Automation.csproj
index cc867501e8..602c5fbffa 100644
--- a/src/System.Management.Automation/System.Management.Automation.csproj
+++ b/src/System.Management.Automation/System.Management.Automation.csproj
@@ -14,7 +14,7 @@
<!-- the following package(s) are from https://github.com/JamesNK/Newtonsoft.Json -->
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<!-- the Application Insights package -->
- <PackageReference Include="Microsoft.ApplicationInsights" Version="2.20.0" />
+ <PackageReference Include="Microsoft.ApplicationInsights" Version="2.21.0" />
<!-- the following package(s) are from https://github.com/dotnet/corefx -->
<PackageReference Include="Microsoft.Win32.Registry.AccessControl" Version="7.0.0-preview.7.22375.6" />
<PackageReference Include="System.Configuration.ConfigurationManager" Version="7.0.0-preview.7.22375.6" />
diff --git a/src/System.Management.Automation/utils/Telemetry.cs b/src/System.Management.Automation/utils/Telemetry.cs
index 625f957165..3d9f3c9e1f 100644
--- a/src/System.Management.Automation/utils/Telemetry.cs
+++ b/src/System.Management.Automation/utils/Telemetry.cs
@@ -143,7 +143,7 @@ namespace Microsoft.PowerShell.Telemetry
{
s_sessionId = Guid.NewGuid().ToString();
TelemetryConfiguration configuration = TelemetryConfiguration.CreateDefault();
- configuration.InstrumentationKey = _psCoreTelemetryKey;
+ configuration.ConnectionString = "InstrumentationKey=" + _psCoreTelemetryKey;
// Set this to true to reduce latency during development
configuration.TelemetryChannel.DeveloperMode = false;