@@ -226,6 +226,10 @@ private void LogExceptionEvent(AzurePSQoSEvent qos)
226
226
eventProperties . Add ( "Message" , "Message removed due to PII." ) ;
227
227
eventProperties . Add ( "StackTrace" , qos . Exception . StackTrace ) ;
228
228
eventProperties . Add ( "ExceptionType" , qos . Exception . GetType ( ) . ToString ( ) ) ;
229
+ if ( qos . Exception . InnerException != null )
230
+ {
231
+ eventProperties . Add ( "InnerExceptionType" , qos . Exception . InnerException . GetType ( ) . ToString ( ) ) ;
232
+ }
229
233
client . TrackException ( null , eventProperties , eventMetrics ) ;
230
234
}
231
235
}
@@ -266,6 +270,7 @@ private void PopulatePropertiesFromQos(AzurePSQoSEvent qos, IDictionary<string,
266
270
eventProperties . Add ( "HashMacAddress" , HashMacAddress ) ;
267
271
eventProperties . Add ( "PowerShellVersion" , PSVersion ) ;
268
272
eventProperties . Add ( "Version" , AzurePowerShell . AssemblyVersion ) ;
273
+ eventProperties . Add ( "CommandParameterSetName" , qos . ParameterSetName ) ;
269
274
if ( qos . InputFromPipeline != null )
270
275
{
271
276
eventProperties . Add ( "InputFromPipeline" , qos . InputFromPipeline . Value . ToString ( ) ) ;
@@ -371,6 +376,7 @@ public class AzurePSQoSEvent
371
376
public string Uid { get ; set ; }
372
377
public string ClientRequestId { get ; set ; }
373
378
public string SessionId { get ; set ; }
379
+ public string ParameterSetName { get ; set ; }
374
380
public Dictionary < string , string > CustomProperties { get ; private set ; }
375
381
376
382
public AzurePSQoSEvent ( )
0 commit comments