Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initial changes for webExtension telemetry #218

Merged
merged 5 commits into from
Jul 5, 2022

Conversation

ashishchoudhary001
Copy link
Contributor

@ashishchoudhary001 ashishchoudhary001 commented Jun 27, 2022

Setting up telemetry for the Portal WebExtension.

@ashishchoudhary001 ashishchoudhary001 marked this pull request as ready for review June 29, 2022 17:21
src/web/extension.ts Outdated Show resolved Hide resolved
src/web/extension.ts Show resolved Hide resolved
src/web/extension.ts Show resolved Hide resolved
src/web/extension.ts Show resolved Hide resolved

export function activate(context: vscode.ExtensionContext): void {
console.log("Activated web extension!"); // sample code for testing the webExtension
// setup telemetry
_telemetry = new TelemetryReporter(context.extension.id, context.extension.packageJSON.version, AI_KEY);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use the AI key for development instance since this extension is not (hopefully) public yet.

src/web/extension.ts Show resolved Hide resolved
_telemetry = new TelemetryReporter(context.extension.id, context.extension.packageJSON.version, AI_KEY);
context.subscriptions.push(_telemetry);
_telemetry.sendTelemetryEvent("Start");
_telemetry.sendTelemetryEvent("activated");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this line should be the last line of the function. as it is in the other extensions.ts

@ashishchoudhary001 ashishchoudhary001 merged commit 47eec70 into main Jul 5, 2022
@ashishchoudhary001 ashishchoudhary001 deleted the users/aschoud/webExtension_TelemetryInfra branch July 5, 2022 06:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants