Skip to content

Commit

Permalink
feat: Track current culture
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromelaban committed Dec 13, 2024
1 parent 4edb7da commit 485f3de
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Uno.DevTools.Telemetry/TelemetryCommonProperties.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
using Uno.DevTools.Telemetry.Helpers;
using System.Security.Cryptography;
using System.Net.NetworkInformation;
using System.Globalization;

namespace Uno.DevTools.Telemetry
{
Expand All @@ -47,6 +48,7 @@ public TelemetryCommonProperties(
public const string CurrentPathHash = "Current Path Hash";
public const string KernelVersion = "Kernel Version";
public const string IsRunningCI = "IsRunningCI";
public const string CurrentCulture = "CurrentCulture";

private const string TelemetryProfileEnvironmentVariable = "DOTNET_CLI_TELEMETRY_PROFILE";

Expand All @@ -63,6 +65,7 @@ public Dictionary<string, string> GetTelemetryCommonProperties()
{ MachineId, GetMachineId() },
{ CurrentPathHash, HashBuilder.Build(_getCurrentDirectory()) },
{ KernelVersion, GetKernelVersion() },
{ CurrentCulture, CultureInfo.CurrentCulture.IetfLanguageTag },
};

var runningCI = GetIsRunningCI();
Expand Down

0 comments on commit 485f3de

Please sign in to comment.