Add scopes property to login telemetry (#128261)

* Add scopes property to login telemetry
This commit is contained in:
Tyler James Leonhardt
2021-07-08 21:48:44 -07:00
committed by GitHub
parent 83f39dd6c6
commit 87d692b7bf
2 changed files with 13 additions and 4 deletions

View File

@@ -196,9 +196,13 @@ export class GitHubAuthenticationProvider implements vscode.AuthenticationProvid
public async createSession(scopes: string[]): Promise<vscode.AuthenticationSession> {
try {
/* __GDPR__
"login" : { }
"login" : {
"scopes": { "classification": "PublicNonPersonalData", "purpose": "FeatureInsight" }
}
*/
this.telemetryReporter?.sendTelemetryEvent('login');
this.telemetryReporter?.sendTelemetryEvent('login', {
scopes: JSON.stringify(scopes),
});
const token = await this._githubServer.login(scopes.join(' '));
this.afterTokenLoad(token);