Repository navigation
feat(telemetry): honour DO_NOT_TRACK, and document what telemetry sends - #364
Merged
Merged
Conversation
- 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>
Contributor
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. 🤖 Generated with Claude Code |
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
DO_NOT_TRACK=1turns telemetry off, alongside the existingDCD_TELEMETRY_DISABLED=1.DO_NOT_TRACKis the cross-tool convention (https://consoledonottrack.com).0,falseor an empty value now leave telemetry on, for both variables. Before, any value ofDCD_TELEMETRY_DISABLEDturned it off, even0. SoDCD_TELEMETRY_DISABLED=0now does what it says. This is the one behaviour change for existing users.Tests
test/unit/telemetry-disabled.test.tscovers both variables and the values that do and don't turn telemetry off.DO_NOT_TRACK=1set skips them instead of failing.pnpm lint,pnpm typecheck,pnpm buildclean.pnpm test:unit: 805 passing. WithDO_NOT_TRACK=1: 793 passing, 12 pending, 0 failing.🤖 Generated with Claude Code