8000 fix(telemetry): remove telemetry option from VSCode by abeatrix · Pull Request #7636 · sourcegraph/cody · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix(telemetry): remove telemetry option from VSCode #7636

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

Merged
merged 8 commits into from
Apr 7, 2025
Merged

Conversation

abeatrix
Copy link
Contributor
@abeatrix abeatrix commented Mar 31, 2025

Removed telemetry option from VSCode

Test Plan

Data team to test and confirm on the telemetry side for all supported Cody clients

Telemetry can only be disabled for non-Sourcegraph.com / Workspaces instances.

This commit updates the check to ensure telemetry is only disabled when the instance is not a dotcom or a workspace instance.

## Test Plan

Data team to test
@abeatrix abeatrix requested a review from akalia25 March 31, 2025 20:31
Co-authored-by: Aditya Kalia <32119652+akalia25@users.noreply.github.com>
Comment on lines 40 to 43
// Telemetry Collection Policy:
// - Sourcegraph.com users (Free & Pro): Telemetry collection is mandatory and always enabled.
// - Workspace Users (Enterprise Starter): Telemetry collection is mandatory and always enabled.
// - Enterprise Customer Users: Have the option to disable telemetry collection
Copy link
Contributor

Choose a reason for hiding this comment

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

The `cody.telemetry.level` setting is removed from the VS Code configuration.
Telemetry is now enabled by default for all users, except for those
on enterprise
@ichim-david ichim-david marked this pull request as ready for review April 3, 2025 20:32
@ichim-david ichim-david requested a review from akalia25 April 3, 2025 20:32
@akalia25
Copy link
Contributor
akalia25 commented Apr 4, 2025

Hey @ichim-david, I tested this change with our internal sourcegraph workspace and was able to disable telemetry, 🤔 are you also experiencing this?
image

@akalia25
Copy link
Contributor
akalia25 commented Apr 4, 2025

working as expected! The issue was with my dev environment 🤦! Thanks @ichim-david for the change!
image

Copy link
Contributor
@akalia25 akalia25 left a comment

Choose a reason for hiding this comment

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

Thank you for the quick action here!

- this avoids having to fix package.json after a simple save
The telemetry level check is removed. Telemetry is now enabled by default for all users
@ichim-david ichim-david changed the title fix(telemetry): telemetry is only configurable for Enterprise fix(telemetry): remove telemetry option from VSCode Apr 4, 2025
… warning

This commit suppresses the N-API callback uncaught exception warning by setting the `NODE_NO_WARNINGS` environment variable to '1'. This prevents the warning from being displayed during integration tests.

See https://nodejs.org/api/n-api.html#n_api_uncaught_exceptions for more information.
@ichim-david ichim-david merged commit 13210cb into main Apr 7, 2025
18 of 22 checks passed
@ichim-david ichim-david deleted the bee/tel-ws branch April 7, 2025 17:29
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.

4 participants
0