@@ -76,6 +76,7 @@ public async Task<IValidationResult> ValidateSymbolsAsync(string packageId, stri
7676 {
7777 if ( ! SymbolsHaveMatchingPEFiles ( pdbs , pes ) )
7878 {
79+ _telemetryService . TrackSymbolsValidationResultEvent ( packageId , packageNormalizedVersion , ValidationStatus . Failed , nameof ( ValidationIssue . SymbolErrorCode_MatchingPortablePDBNotFound ) ) ;
7980 return ValidationResult . FailedWithIssues ( ValidationIssue . SymbolErrorCode_MatchingPortablePDBNotFound ) ;
8081 }
8182 var targetDirectory = Settings . GetWorkingDirectory ( ) ;
@@ -165,6 +166,7 @@ public virtual IValidationResult ValidateSymbolMatching(string targetDirectory,
165166
166167 if ( checksumRecords . Length == 0 )
167168 {
169+ _telemetryService . TrackSymbolsValidationResultEvent ( packageId , packageNormalizedVersion , ValidationStatus . Failed , nameof ( ValidationIssue . SymbolErrorCode_ChecksumDoesNotMatch ) ) ;
168170 return ValidationResult . FailedWithIssues ( ValidationIssue . SymbolErrorCode_ChecksumDoesNotMatch ) ;
169171 }
170172
@@ -195,15 +197,18 @@ public virtual IValidationResult ValidateSymbolMatching(string targetDirectory,
195197 if ( checksumRecord . Checksum . ToArray ( ) . SequenceEqual ( hash ) )
196198 {
197199 // found the right checksum
200+ _telemetryService . TrackSymbolsValidationResultEvent ( packageId , packageNormalizedVersion , ValidationStatus . Succeeded , "" ) ;
198201 return ValidationResult . Succeeded ;
199202 }
200203 }
201204
202205 // Not found any checksum record that matches the PDB.
206+ _telemetryService . TrackSymbolsValidationResultEvent ( packageId , packageNormalizedVersion , ValidationStatus . Failed , nameof ( ValidationIssue . SymbolErrorCode_ChecksumDoesNotMatch ) ) ;
203207 return ValidationResult . FailedWithIssues ( ValidationIssue . SymbolErrorCode_ChecksumDoesNotMatch ) ;
204208 }
205209 }
206210 }
211+ _telemetryService . TrackSymbolsValidationResultEvent ( packageId , packageNormalizedVersion , ValidationStatus . Failed , nameof ( ValidationIssue . SymbolErrorCode_MatchingPortablePDBNotFound ) ) ;
207212 return ValidationResult . FailedWithIssues ( ValidationIssue . SymbolErrorCode_MatchingPortablePDBNotFound ) ;
208213 }
209214 }
@@ -215,6 +220,7 @@ public virtual IValidationResult ValidateSymbolMatching(string targetDirectory,
215220 packageId ,
216221 packageNormalizedVersion ,
217222 Directory . GetFiles ( targetDirectory , SymbolExtensionPattern , SearchOption . AllDirectories ) ) ;
223+ _telemetryService . TrackSymbolsValidationResultEvent ( packageId , packageNormalizedVersion , ValidationStatus . Failed , nameof ( ValidationIssue . SymbolErrorCode_MatchingPortablePDBNotFound ) ) ;
218224 return ValidationResult . FailedWithIssues ( ValidationIssue . SymbolErrorCode_MatchingPortablePDBNotFound ) ;
219225 }
220226
0 commit comments