Skip to content

chore(tracker): remove PostHog telemetry entirely#161

Open
justrach wants to merge 1 commit into
release/0.2.17from
chore/remove-posthog
Open

chore(tracker): remove PostHog telemetry entirely#161
justrach wants to merge 1 commit into
release/0.2.17from
chore/remove-posthog

Conversation

@justrach

@justrach justrach commented Jun 4, 2026

Copy link
Copy Markdown
Owner

What

Removes PostHog telemetry from graff entirely. The first-party trajectory uploader to data.codegraff.com (forge_app::TrajectoryUploader) is now the sole telemetry channel; PostHog was vestigial.

Changes

  • Dependency: drop posthog-rs from the workspace and forge_tracker (also drops the async-compression / compression-codecs / compression-core transitives)
  • Collector: delete collect/posthog.rs; Tracker now dispatches to an empty collector set — its event API is kept as a no-op so existing call sites compile unchanged
  • Log sink: remove PostHogWriter; logging always uses the rolling daily file
  • Secrets / CI: drop the POSTHOG_API_SECRET const, the Cross.toml passthrough, and the CI release-build env
  • Error: remove the PostHog error variant
  • caller at forge_main/src/ui.rs updated (drops the now-unused tracker arg from init_tracing)

Verification

cargo check -p forge_tracker -p forge_main -p forge_ci0 warnings / 0 errors (clean under CI's -D warnings).

The OTLP path (forge_tracker/otel.rs) and the data.codegraff.com trajectory channel are untouched.

🤖 Generated with Claude Code

PostHog was forge_tracker's only event collector and a tracing log sink,
but the first-party trajectory uploader to data.codegraff.com is now the
sole telemetry channel. Remove it end to end:

- drop the posthog-rs dependency (and its async-compression /
  compression-codecs / compression-core transitives) from the workspace
  and forge_tracker
- delete the PostHog collector (collect/posthog.rs)
- remove the PostHogWriter log sink; logging now always uses the rolling
  daily file
- drop the POSTHOG_API_SECRET const plus the CI and Cross secret env
- remove the PostHog error variant

forge_tracker::Tracker keeps its event API as a no-op (empty collector set)
so existing call sites compile unchanged. Verified clean: 0 warnings under
CI's -D warnings.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

Action required: PR inactive for 5 days.
Status update or closure in 10 days.

@github-actions github-actions Bot added the state: inactive No current action needed/possible; issue fixed, out of scope, or superseded. label Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

state: inactive No current action needed/possible; issue fixed, out of scope, or superseded.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant