File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1309,6 +1309,21 @@ export class GitHubRepository extends Disposable {
13091309 return issue ;
13101310 } catch ( e ) {
13111311 Logger . error ( `Unable to fetch issue: ${ e } ` , this . id ) ;
1312+ const properties : { errorCode ?: string } = { } ;
1313+ if ( e . status !== undefined ) {
1314+ properties . errorCode = String ( e . status ) ;
1315+ } else if ( e . graphQLErrors ?. [ 0 ] ?. extensions ?. code ) {
1316+ properties . errorCode = String ( e . graphQLErrors [ 0 ] . extensions . code ) ;
1317+ }
1318+ /* __GDPR__
1319+ "pr.getIssueFailed" : {
1320+ "issueNumber": { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
1321+ "errorCode": { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
1322+ }
1323+ */
1324+ this . telemetry . sendTelemetryErrorEvent ( 'pr.getIssueFailed' , properties , {
1325+ issueNumber : id
1326+ } ) ;
13121327 return ;
13131328 }
13141329 }
You can’t perform that action at this time.
0 commit comments