diff --git a/UnoCheck/Telemetry/TelemetryClient.cs b/UnoCheck/Telemetry/TelemetryClient.cs index 4b934cee..50a62b6f 100644 --- a/UnoCheck/Telemetry/TelemetryClient.cs +++ b/UnoCheck/Telemetry/TelemetryClient.cs @@ -45,11 +45,14 @@ public static void TrackStartCheck(string[] requestedFrameworks) .Select(s => s[..32]) .Take(10) ?? []); + // Only include RequestedFrameworks property if there are actual frameworks to report + var properties = string.IsNullOrEmpty(frameworks) + ? new (string, string)[] { } + : new (string, string)[] { ("RequestedFrameworks", frameworks) }; + _telemetry.TrackEvent( "check-start", - [ - ("RequestedFrameworks", frameworks), - ], + properties, [] ); }