mirror of
https://github.com/DRYTRIX/TimeTracker.git
synced 2026-05-19 12:50:11 -05:00
5be0054157
- 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()
23 lines
606 B
Python
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",
|
|
]
|