mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-17 19:24:19 +00:00
feat(telemetry): include instance_create_ts in heartbeat payload
Load the instance creation timestamp from data/labels/instance_id.json (backfilling+persisting it for instances created before the field existed), expose it as constants.instance_create_ts, and include it in the heartbeat payload so Space can anchor Time-To-Value / onboarding analytics on real install time rather than first-heartbeat. Verified: py_compile, ruff, pytest tests/unit_tests/telemetry/ (37 passed).
This commit is contained in:
@@ -16,3 +16,11 @@ debug_mode = False
|
||||
edition = 'community'
|
||||
|
||||
instance_id = ''
|
||||
|
||||
instance_create_ts = 0
|
||||
"""Unix timestamp (seconds) of when this instance was first created.
|
||||
|
||||
Sourced from ``data/labels/instance_id.json``. Backfilled to the current
|
||||
time for instances created before this field existed, so it is always a
|
||||
positive value once load_config has run.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user