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

Disable Microsoft telemetry #2882

Merged
merged 5 commits into from
Apr 25, 2024
Merged

Disable Microsoft telemetry #2882

merged 5 commits into from
Apr 25, 2024

Conversation

juliasilge
Copy link
Contributor

Intent

Addresses #2522

Approach

This PR takes a similar approach as VSCodium. I took a look at this info when deciding what to do/remove:

QA Notes

To see if there are other references to these servers, you can search for data.microsoft.com in the codebase.

Also, you can try rebuilding Positron from scratch and then doing rg --no-ignore -l "data.microsoft.com" . from Positron's directory. You'll see a lot of stuff, but it is only node_modules. If you do rg -l "data.microsoft.com" . you'll only see the 1dsAppender.ts we have edited here in this PR.

Comment on lines +150 to +153
// --- Start Positron ---
// 'default': true,
'default': false,
// --- End Positron ---
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I feel like this one could be argued either way (keep or remove) but I would vote for removing.

@juliasilge juliasilge marked this pull request as ready for review April 24, 2024 21:04
// --- Start Positron ---
// const endpointUrl = 'https://mobile.events.data.microsoft.com/OneCollector/1.0';
// const endpointHealthUrl = 'https://mobile.events.data.microsoft.com/ping';
const endpointUrl = 'https://mobile.events.0.0.0.0/OneCollector/1.0';
Copy link
Collaborator

Choose a reason for hiding this comment

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

While that is an invalid host, were we literally trying to use 0.0.0.0 to be IP of "this machine" or even an invalid IP, and if so, should we drop mobile.events. prefix? With telemetry disabled, I trust these URLs aren't actually used, though.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, that's probably better, yes

@petetronic petetronic changed the title Remove Microsoft telemetry Disable Microsoft telemetry Apr 25, 2024
@juliasilge juliasilge merged commit 2717371 into main Apr 25, 2024
1 check passed
@juliasilge juliasilge deleted the remove-telemetry branch April 25, 2024 18:39
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.

2 participants