Skip to content

feat(telemetry): honour DO_NOT_TRACK, and document what telemetry sends - #364

Merged
riglar merged 2 commits into
devfrom
feat/do-not-track
Nov 27, 2026
Merged

riglar merged 2 commits into
devfrom
feat/do-not-track

Conversation

@riglar

@riglar riglar commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

What

  • DO_NOT_TRACK=1 turns telemetry off, alongside the existing DCD_TELEMETRY_DISABLED=1. DO_NOT_TRACK is the cross-tool convention (https://consoledonottrack.com).
  • 0, false or an empty value now leave telemetry on, for both variables. Before, any value of DCD_TELEMETRY_DISABLED turned it off, even 0. So DCD_TELEMETRY_DISABLED=0 now does what it says. This is the one behaviour change for existing users.
  • The CLI no longer sends the signed-in user's email address with telemetry. The API already dropped it, so nothing used it.
  • README: a new Telemetry section. It says what is sent, that it is used only for debugging and development (not for marketing, and not sold), and how to turn it off, including for the MCP server.

Tests

  • New test/unit/telemetry-disabled.test.ts covers both variables and the values that do and don't turn telemetry off.
  • The telemetry tests now skip using the same check, so running the suite with DO_NOT_TRACK=1 set skips them instead of failing.
  • pnpm lint, pnpm typecheck, pnpm build clean. pnpm test:unit: 805 passing. With DO_NOT_TRACK=1: 793 passing, 12 pending, 0 failing.

🤖 Generated with Claude Code

- DO_NOT_TRACK=1 now turns telemetry off, as DCD_TELEMETRY_DISABLED=1 does.
- For both vars, 0, false or an empty value leave telemetry on. Before,
  any value of DCD_TELEMETRY_DISABLED turned it off, even 0.
- Telemetry no longer sends the signed-in user's email address.
- README: a Telemetry section on what is sent, what it is used for
  (debugging and development only, not marketing), and how to turn it off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@claude

claude Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

🤖 Generated with Claude Code

@riglar
riglar merged commit 422012a into dev Nov 27, 2026
9 checks passed
@riglar
riglar deleted the feat/do-not-track branch November 27, 2026 10:54
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.

1 participant