Skip to content

Commit

Permalink
Revert "Fix compiler errors"
Browse files Browse the repository at this point in the history
This reverts commit 2d64819.
  • Loading branch information
Kingdon Barrett committed Sep 8, 2023
1 parent 4ad8dec commit cd64c8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/data/telemetry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,9 @@ export class Telemetry {
private reporter: TelemetryReporter;

constructor(context: ExtensionContext, extensionVersion: string, extensionId: string) {
// second and third arguments are no longer accepted by TelemetryReporter constructor
this.context = context;
const key = '9a491deb-120a-4a6e-8893-f528d4f6bd9c';
this.reporter = new TelemetryReporter(key);
this.reporter = new TelemetryReporter(extensionId, extensionVersion, key);
context.subscriptions.push(this.reporter);
}

Expand Down Expand Up @@ -89,7 +88,7 @@ export class Telemetry {
error = new Error(eventName);
}

this.reporter.sendTelemetryEvent(String(error), {
this.reporter.sendTelemetryException(error, {
name: eventName,
});

Expand Down
1 change: 0 additions & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ export async function activate(context: ExtensionContext) {

globalState = new GlobalState(context);

// Note: the second and third arguments are thrown away
telemetry = new Telemetry(context, getExtensionVersion(), GitOpsExtensionConstants.ExtensionId);

initData();
Expand Down

0 comments on commit cd64c8f

Please sign in to comment.