Files
TimeTracker/app/telemetry/__init__.py
T
Dries Peeters 5be0054157 feat(telemetry): add install_id UUID and consent-aware telemetry service
- Add get_install_id() and base_first_seen tracking in InstallationConfig
- Introduce app/telemetry package with TelemetryService abstraction
- Define minimal base telemetry schema (BASE_SCHEMA_KEYS)
- Implement send_base_telemetry, send_base_first_seen, send_base_heartbeat
- Implement send_analytics_event and identify_user gated by opt-in
- Unify install identity: get_installation_id() now returns get_install_id()
2026-03-16 13:00:49 +01:00

23 lines
606 B
Python

"""
Privacy-aware telemetry: base (always-on, minimal) and detailed analytics (opt-in only).
- base_telemetry.*: install footprint, version, platform, heartbeat; no PII.
- analytics.* / product events: only when user has opted in; feature usage, screens, errors.
"""
from app.telemetry.service import (
is_detailed_analytics_enabled,
send_analytics_event,
send_base_first_seen,
send_base_heartbeat,
send_base_telemetry,
)
__all__ = [
"is_detailed_analytics_enabled",
"send_analytics_event",
"send_base_first_seen",
"send_base_heartbeat",
"send_base_telemetry",
]