Skip to content

Upstream anonymous telemetry module - #4909

Merged
automergerpr-permission-manager[bot] merged 5 commits into
developfrom
anvacaru/telemetry-2
Apr 10, 2026
Merged

Upstream anonymous telemetry module#4909
automergerpr-permission-manager[bot] merged 5 commits into
developfrom
anvacaru/telemetry-2

Conversation

@anvacaru

@anvacaru anvacaru commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

Add pyk.telemetry module to centralize anonymous usage tracking. Downstream tools (kontrol, komet, etc.) can import emit_event instead of duplicating this logic in each project.

  • Stores a persistent anonymous user ID in ~/.config/kprofile/config.toml
  • Opt-out via KPROFILE_TELEMETRY_DISABLED=true or consent=false in the config file
  • Consent notice printed once, on first run
  • Callers pass tool-specific metadata (e.g. {'version': '1.2.3'}) via properties
  • Added requests, tomli-w, and types-requests dependencies

@rv-jenkins
rv-jenkins changed the base branch from master to develop April 9, 2026 05:43
@anvacaru
anvacaru requested a review from tothtamas28 April 9, 2026 09:29
@anvacaru
anvacaru marked this pull request as ready for review April 9, 2026 09:29
Comment thread pyk/src/pyk/telemetry.py Outdated
Comment thread pyk/src/pyk/telemetry.py Outdated
Comment thread pyk/src/pyk/telemetry.py Outdated
Comment thread pyk/src/pyk/telemetry.py Outdated
@automergerpr-permission-manager
automergerpr-permission-manager Bot merged commit 874a384 into develop Apr 10, 2026
20 checks passed
@automergerpr-permission-manager
automergerpr-permission-manager Bot deleted the anvacaru/telemetry-2 branch April 10, 2026 10:01
dkcumming pushed a commit that referenced this pull request Apr 30, 2026
Add `pyk.telemetry` module to centralize anonymous usage tracking.
Downstream tools (`kontrol`, `komet`, etc.) can import `emit_event`
instead of duplicating this logic in each project.

- Stores a persistent anonymous user ID in
`~/.config/kprofile/config.toml`
- Opt-out via `KPROFILE_TELEMETRY_DISABLED=true` or `consent=false` in
the config file
  - Consent notice printed once, on first run
- Callers pass tool-specific metadata (e.g. `{'version': '1.2.3'}`) via
`properties`
  - Added `requests`, `tomli-w`, and `types-requests` dependencies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants