Skip to content

Commit 5d8a250

Browse files
committed
Add telemetry for assignable users
1 parent 14ee92e commit 5d8a250

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

src/github/githubRepository.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)