Remove Sentry telemetry system from CodeGraph

Eliminates anonymous error reporting functionality that was collecting stack traces and error context via Sentry. Removes all telemetry-related code, configuration options, and documentation references.
This commit is contained in:
Colby McHenry
2026-04-03 09:54:07 -05:00
parent 9bb8e96bd4
commit 8b5622d346
14 changed files with 11 additions and 286 deletions
+2 -14
View File
@@ -55,21 +55,9 @@ export async function runInstaller(): Promise<void> {
const autoAllow = await promptAutoAllow();
console.log();
// Step 4: Ask about anonymous error reporting
console.log(chalk.bold(' Send anonymous error reports?') + chalk.dim(' (Helps fix bugs — no source code collected)'));
console.log();
const enableTelemetry = await promptConfirm('Enable anonymous error reporting', true);
if (!enableTelemetry) {
info('Telemetry disabled');
} else {
success('Anonymous error reporting enabled');
}
console.log();
// Step 5: Write MCP configuration (includes telemetry env if opted out)
// Step 4: Write MCP configuration
const alreadyHasMcp = hasMcpConfig(location);
writeMcpConfig(location, { telemetry: enableTelemetry });
writeMcpConfig(location);
if (alreadyHasMcp) {
success(`Updated MCP server in ${location === 'global' ? '~/.claude.json' : './.claude.json'}`);