Skip to content

Conversation

@nkomonen-amazon
Copy link
Contributor

@nkomonen-amazon nkomonen-amazon commented Oct 23, 2024

Problem:

There seems to be a bug with vscode.env.sessionId since we observed in telemetry multiple clientIds who had the same sessionId.

Solution:

Generate our own sessionId and share it between extensions through globalThis


License: I confirm that my contribution is made under the terms of the Apache 2.0 license.

@nkomonen-amazon nkomonen-amazon requested a review from a team as a code owner October 23, 2024 22:43
@nkomonen-amazon nkomonen-amazon changed the title bug(telemetry): sessionId not unique telemetry(bug): sessionId not unique Oct 23, 2024
@nkomonen-amazon nkomonen-amazon force-pushed the sessionEndFix branch 3 times, most recently from d386426 to 800b6a5 Compare October 24, 2024 14:22
Problem:

There seems to be a bug with vscode.env.sessionId since we observed in telemetry
multiple clientIds who has the same sessionId.

Solution:

Generate our own sessionId and share it between extensions through globalThis

Signed-off-by: nkomonen-amazon <[email protected]>
* on selection. There is no support for name-spacing. Just add the relevant
* feature/module as a description so it can be moved around easier.
*/
const menuOptions: Record<DevFunction, MenuOption> = {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was defined at extension load and called getSessionId() before globals was defined. So we just make this a function so it is created once needed

@nkomonen-amazon nkomonen-amazon merged commit 798a4fd into aws:master Oct 24, 2024
23 of 24 checks passed
@nkomonen-amazon nkomonen-amazon deleted the sessionEndFix branch October 24, 2024 18:10
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