Skip to content

Commit ad3b7c0

Browse files
committed
[Azure#4181] Fix exception telemetry.
1 parent ebef72d commit ad3b7c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Common/Commands.Common/MetricHelper.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ private void LogExceptionEvent(AzurePSQoSEvent qos)
150150
LoadTelemetryClientContext(qos, client.Context);
151151
PopulatePropertiesFromQos(qos, eventProperties);
152152
// qos.Exception contains exception message which may contain Users specific data.
153-
// We should not collect users specific data.
153+
// We should not collect users specific data.
154+
eventProperties.Add("Message", "Message removed due to PII.");
154155
eventProperties.Add("StackTrace", qos.Exception.StackTrace);
155156
eventProperties.Add("ExceptionType", qos.Exception.GetType().ToString());
156157
client.TrackException(null, eventProperties, eventMetrics);

0 commit comments

Comments
 (0)