Skip to content

feat(telemetry): add anonymous usage tracking#64

Merged
bjoaquinc merged 1 commit into
develfrom
feat/22-add-telemetry
Jun 30, 2026
Merged

feat(telemetry): add anonymous usage tracking#64
bjoaquinc merged 1 commit into
develfrom
feat/22-add-telemetry

Conversation

@burnash

@burnash burnash commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Implements #22

Overview

Adds opt-out anonymous usage telemetry to the CLI to monitor and improve it the onboarding. Resolves #22.

Changes

  • telemetry.py (new): a PostHog client; emits one event per run with status, duration, CLI version, and CI/interactive
    flags.
  • cli.py: adds --no-telemetry, inits telemetry, records every exit path, and shows a one-time first-run notice.
  • Reuses dlt's anonymous device id.
  • hatch_build.py (new) + pyproject.toml: build hook bakes the PostHog key into a gitignored _telemetry_key.py; adds posthog>=3.7. Plus config.py/strings.py host string.
  • Docs: README + CONTRIBUTING telemetry sections, CHANGELOG entry.

Tests

New tests/test_telemetry.py.

@bjoaquinc bjoaquinc merged commit 604e15c into devel Jun 30, 2026
5 checks passed
@bjoaquinc bjoaquinc deleted the feat/22-add-telemetry branch June 30, 2026 08:59
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.

feat(telemetry): add telemetry to dlthub-start package

2 participants