You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Ensure telemetry is not sent when telemetry is disabled #1116
Why is code-server (v2 latest Docker) trying to access dc.services.visualstudio.com when telemetry is being disabled? I've found this question online that tells it's application insights. It might not be true anymore but do you know what it's used for? Shouldn't it be disabled by the telemetry disabler flag if it's analytics? As far as I can tell from the DNS logs, it seems to be requested around docker-compose up -d.
I'm not entirely certain if the --disable-telemetry flag is supposed to affect extensions. It seems to only affect the main VS Code process by design but I might be wrong about that.
We were missing the telemetry option in the settings though so I added it. Extensions appear to read that setting so disabling it should stop extensions from sending telemetry. Should have a new release out some time today with that change.
If you're able to find some time to test the new release once it comes
out and verify that disabling the setting works for you before we close
this that would be fantastic but if not we can go ahead and close it
now, nbd.
Well, it seems the issue still exists but in a weirder way. After upgrading to the latest version, the global telemetry option is checked even though the app is started with disable telemetry option. I'm pretty sure this was unchecked before the upgrade.
My compose file is below, and I removed then reinstalled the "PHP Intelephense" plugin after the docker update, this is what I got in the VSCode settings and in the DNS logs:
Since I blocked the telemetry domain on the DNS level, it couldn't phone home but still annoying that it doesn't do what it should.
For another test, I've just unchecked the main telemetry option, did a simple local docker compose down and up, then removed and reinstalled the PHP plugin. The unchecked main telemetry option after the container recreation it's still unchecked (as it should be, it might read the persisted settings JSON), but there is another telemetry DNS log entry as the latest call probably from the plugin. It says its setting is inherited but somehow it's still leaking. And adding the main telemetry option becoming enabled on upgrade in the previous comment is weird.
I think we might want to modify --disable-telemetry to force that main setting and any sub-settings to off. It seems like VS Code just doesn't do that by default for some reason even though to me that's confusing.
Does it only make the one request? I think when telemetry is disabled it might still send
one request saying that telemetry is disabled (which is pretty lame IMO).
Well, I can't be sure as I don't know the internals on this depth but I've just opened it in a new tab with a PHP file and there is another blocked entry in the DNS log.
changed the title [-][v2] Multiple requests to tracker when telemetry disabled?[/-][+]Ensure telemetry is not sent when telemetry is disabled[/+]on Jan 29, 2020
Activity
immanuelfodor commentedon Oct 26, 2019
Well, after further thought, it seems it's included in some extensions. Shouldn't these be affected by the "global" telemetry disable flag?
sr229 commentedon Oct 26, 2019
@immanuelfodor we'll investigate. But I think we were already passing that since we just proxy VSCode flags.
code-asher commentedon Nov 7, 2019
I'm not entirely certain if the
--disable-telemetryflag is supposed to affect extensions. It seems to only affect the main VS Code process by design but I might be wrong about that.We were missing the telemetry option in the settings though so I added it. Extensions appear to read that setting so disabling it should stop extensions from sending telemetry. Should have a new release out some time today with that change.
immanuelfodor commentedon Nov 7, 2019
Thanks for the update, sounds good! I think we can close this issue if you no longer need it open for workflow purposes.
code-asher commentedon Nov 7, 2019
immanuelfodor commentedon Nov 8, 2019
Well, it seems the issue still exists but in a weirder way. After upgrading to the latest version, the global telemetry option is checked even though the app is started with disable telemetry option. I'm pretty sure this was unchecked before the upgrade.
My compose file is below, and I removed then reinstalled the "PHP Intelephense" plugin after the docker update, this is what I got in the VSCode settings and in the DNS logs:
Since I blocked the telemetry domain on the DNS level, it couldn't phone home but still annoying that it doesn't do what it should.
immanuelfodor commentedon Nov 8, 2019
For another test, I've just unchecked the main telemetry option, did a simple local docker compose down and up, then removed and reinstalled the PHP plugin. The unchecked main telemetry option after the container recreation it's still unchecked (as it should be, it might read the persisted settings JSON), but there is another telemetry DNS log entry as the latest call probably from the plugin. It says its setting is inherited but somehow it's still leaking. And adding the main telemetry option becoming enabled on upgrade in the previous comment is weird.
code-asher commentedon Nov 14, 2019
Thank you for testing this!
I think we might want to modify
--disable-telemetryto force that main setting and any sub-settings to off. It seems like VS Code just doesn't do that by default for some reason even though to me that's confusing.Does it only make the one request? I think when telemetry is disabled it might still send
one request saying that telemetry is disabled (which is pretty lame IMO).
immanuelfodor commentedon Nov 15, 2019
Well, I can't be sure as I don't know the internals on this depth but I've just opened it in a new tab with a PHP file and there is another blocked entry in the DNS log.
code-asher commentedon Nov 18, 2019
OK, thanks for the report. 👍 I'll check it out and see if I can figure out what's going on.
[-][v2] Multiple requests to tracker when telemetry disabled?[/-][+]Ensure telemetry is not sent when telemetry is disabled[/+]