Skip to content

Comments

Clean up CallstackOrException telemetry in typescript-language-features#96108

Merged
mjbvz merged 1 commit intomicrosoft:masterfrom
amcasey:EliminateCallstackOrException
Apr 27, 2020
Merged

Clean up CallstackOrException telemetry in typescript-language-features#96108
mjbvz merged 1 commit intomicrosoft:masterfrom
amcasey:EliminateCallstackOrException

Conversation

@amcasey
Copy link
Member

@amcasey amcasey commented Apr 25, 2020

One was actually SystemMetaData, all others were either dropped or replaced with sanitized versions classifiable as SystemMetaData.

One was actually SystemMetaData, all others were either dropped or
replaced with sanitized versions classifiable as SystemMetaData.
/* __GDPR__FRAGMENT__
"TypeScriptRequestErrorProperties" : {
"command" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
"message" : { "classification": "CallstackOrException", "purpose": "PerformanceAndHealth" },
Copy link
Member Author

Choose a reason for hiding this comment

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

I believe dropping these causes them to be on the server side?

return '';
}
return message.replace(new RegExp(`${escapeRegExp(version.path)}[/\\\\]tsserver.js:`, 'gi'), 'tsserver.js:');
const regex = /(tsserver)?(\.(?:ts|tsx|js|jsx)(?::\d+(?::\d+))?)\)?$/igm;
Copy link
Member Author

Choose a reason for hiding this comment

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

This moves us from an exclusion list to an inclusion list, so it should be impossible for customer data to slip through.

@amcasey
Copy link
Member Author

amcasey commented Apr 25, 2020

FYI @mjbvz

@mjbvz mjbvz added this to the April 2020 milestone Apr 25, 2020
@mjbvz mjbvz merged commit 27e2e92 into microsoft:master Apr 27, 2020
@mjbvz
Copy link
Collaborator

mjbvz commented Apr 27, 2020

Thanks @amcasey! Merging this to VS Code but just make sure these changes won't break the exception queries TypeScript use to open issues

@amcasey
Copy link
Member Author

amcasey commented Apr 27, 2020

@mjbvz It will definitely break our tools, but we're prepared to make the necessary changes.

@github-actions github-actions bot locked and limited conversation to collaborators Jun 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants