From 6b071baf08e5c0fab53b0f6f4f3f223ed612e306 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Matou=C5=A1ek?= Date: Tue, 8 Feb 2022 17:23:43 -0800 Subject: [PATCH] Fix wrapping of PII value (#59396) --- src/VisualStudio/Core/Def/Telemetry/VSTelemetryLogger.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/VisualStudio/Core/Def/Telemetry/VSTelemetryLogger.cs b/src/VisualStudio/Core/Def/Telemetry/VSTelemetryLogger.cs index ecb35c8ec9cb6..7389233ad5c27 100644 --- a/src/VisualStudio/Core/Def/Telemetry/VSTelemetryLogger.cs +++ b/src/VisualStudio/Core/Def/Telemetry/VSTelemetryLogger.cs @@ -181,7 +181,7 @@ private static void AppendProperties(TelemetryEvent telemetryEvent, FunctionId f telemetryEvent.Properties.Add(functionId.GetPropertyName(key), value switch { PiiValue pii => new TelemetryPiiProperty(pii.Value), - IEnumerable items => new TelemetryComplexProperty(items.Select(item => (item is PiiValue pii) ? pii.Value : item)), + IEnumerable items => new TelemetryComplexProperty(items.Select(item => (item is PiiValue pii) ? new TelemetryPiiProperty(pii.Value) : item)), _ => value }); }