From 5d8a250db7544adc9ac0d017f40778296877efa2 Mon Sep 17 00:00:00 2001 From: Alex Ross <38270282+alexr00@users.noreply.github.com> Date: Wed, 22 Apr 2026 12:09:26 +0200 Subject: [PATCH 1/3] Add telemetry for assignable users --- src/github/githubRepository.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/github/githubRepository.ts b/src/github/githubRepository.ts index 6eb66c01aa..bd0699fee2 100644 --- a/src/github/githubRepository.ts +++ b/src/github/githubRepository.ts @@ -1309,6 +1309,21 @@ export class GitHubRepository extends Disposable { return issue; } catch (e) { Logger.error(`Unable to fetch issue: ${e}`, this.id); + const properties: { errorCode?: string } = {}; + if (e.status !== undefined) { + properties.errorCode = String(e.status); + } else if (e.graphQLErrors?.[0]?.extensions?.code) { + properties.errorCode = String(e.graphQLErrors[0].extensions.code); + } + /* __GDPR__ + "pr.getIssueFailed" : { + "issueNumber": { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, + "errorCode": { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" } + } + */ + this.telemetry.sendTelemetryErrorEvent('pr.getIssueFailed', properties, { + issueNumber: id + }); return; } } From 55740a8335f68c1227e992d23593da167a227306 Mon Sep 17 00:00:00 2001 From: Alex Ross <38270282+alexr00@users.noreply.github.com> Date: Wed, 22 Apr 2026 12:17:36 +0200 Subject: [PATCH 2/3] Revert "Add telemetry for assignable users" This reverts commit 5d8a250db7544adc9ac0d017f40778296877efa2. --- src/github/githubRepository.ts | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/github/githubRepository.ts b/src/github/githubRepository.ts index bd0699fee2..6eb66c01aa 100644 --- a/src/github/githubRepository.ts +++ b/src/github/githubRepository.ts @@ -1309,21 +1309,6 @@ export class GitHubRepository extends Disposable { return issue; } catch (e) { Logger.error(`Unable to fetch issue: ${e}`, this.id); - const properties: { errorCode?: string } = {}; - if (e.status !== undefined) { - properties.errorCode = String(e.status); - } else if (e.graphQLErrors?.[0]?.extensions?.code) { - properties.errorCode = String(e.graphQLErrors[0].extensions.code); - } - /* __GDPR__ - "pr.getIssueFailed" : { - "issueNumber": { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, - "errorCode": { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" } - } - */ - this.telemetry.sendTelemetryErrorEvent('pr.getIssueFailed', properties, { - issueNumber: id - }); return; } } From 313fcb1737f70519e762f2ca413f52665ba8563d Mon Sep 17 00:00:00 2001 From: Alex Ross <38270282+alexr00@users.noreply.github.com> Date: Wed, 22 Apr 2026 12:19:28 +0200 Subject: [PATCH 3/3] thanks copilot Co-authored-by: Copilot --- src/github/githubRepository.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/github/githubRepository.ts b/src/github/githubRepository.ts index 6eb66c01aa..c2f9cde6c7 100644 --- a/src/github/githubRepository.ts +++ b/src/github/githubRepository.ts @@ -1578,6 +1578,21 @@ export class GitHubRepository extends Disposable { after = users?.pageInfo.endCursor; } catch (e) { Logger.debug(`Unable to fetch assignable users: ${e}`, this.id); + const properties: { errorCode?: string; usedSuggestedActors: string } = { + usedSuggestedActors: String(!!schema.GetSuggestedActors), + }; + if (e.status !== undefined) { + properties.errorCode = String(e.status); + } else if (e.graphQLErrors?.[0]?.extensions?.code) { + properties.errorCode = String(e.graphQLErrors[0].extensions.code); + } + /* __GDPR__ + "pr.getAssignableUsersFailed" : { + "errorCode": { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }, + "usedSuggestedActors": { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" } + } + */ + this.telemetry.sendTelemetryErrorEvent('pr.getAssignableUsersFailed', properties); if ( e.graphQLErrors && e.graphQLErrors.length > 0 &&