Repository navigation
feat(server): disable PostHog telemetry by default - #48
Merged
Merged
Conversation
Drop the upstream PostHog project key and default T3CODE_TELEMETRY_ENABLED to false, so this fork sends no product analytics unless both the flag and a user-supplied T3CODE_POSTHOG_KEY are set.
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
The server no longer sends product analytics to upstream's PostHog project. The hardcoded project key is removed and
T3CODE_TELEMETRY_ENABLEDnow defaults tofalse. Events are only sent when the flag istrueandT3CODE_POSTHOG_KEYis set to a key you supply.Why
Every server built from this fork (desktop,
npx t3, dev) was sending events to upstream's PostHog by default: boot heartbeat, client connects, thread starts, turn requests and turn completions.How I verified it
vp test run apps/server/src/telemetry/AnalyticsService.test.ts: 6/6 pass. The no-send test now covers three cases: explicitly disabled, nothing configured, and enabled without a key.tsc --noEmitinapps/server: 0 errors.vp lint apps/server/src/telemetry/: only two existing warnings in code this PR doesn't touch.Risk
AnalyticsService.tson upstream syncs. Keep this fork's defaults when resolving it.T3CODE_TELEMETRY_ENABLED=falsein the shell stops that.🤖 Generated with Claude Code