Skip to content

Conversation

@jeanp413
Copy link
Member

const analyticsClientFactory = async (key: string): Promise<BaseTelemetryClient> => {
let segmentAnalyticsClient = new SegmentAnalytics(key);

const gitpodHost = vscode.workspace.getConfiguration('gitpod').get<string>('host')!;
Copy link
Contributor

Choose a reason for hiding this comment

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

It should get inside function itself in case user changed gitpod host?

Copy link
Contributor

Choose a reason for hiding this comment

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

I changed it, revert this change if it's not correct

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah this is kinda tricky, I was thinking about this yesterday if we assume there's never a remote windows when changing gitpod host then it makes sense to move inside, if not then this is the correct place as remote windows already connected should keep using the original host

@mustard-mh
Copy link
Contributor

All good with locally packaged
image

Results
image
image

@mustard-mh
Copy link
Contributor

image

@mustard-mh
Copy link
Contributor

We will need better way to call this.logger.error -> wrap the error and make it first argument

Let's first ship this changes 👍 Thank you @jeanp413

@mustard-mh mustard-mh merged commit 25d686c into master Mar 16, 2023
@jeanp413 jeanp413 deleted the jp/error-report branch March 16, 2023 13:37
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.

3 participants