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

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

Merged
merged 1 commit into from Apr 27, 2020

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?

if (!message) {
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
Contributor

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.

None yet

3 participants