feat(telemetry): wire ktx PostHog project for live ingestion

This commit is contained in:
Andrey Avtomonov 2026-05-22 17:00:26 +02:00
parent 91772e5bce
commit 31bc96cc77
4 changed files with 18 additions and 8 deletions

View file

@ -10,8 +10,11 @@ from collections.abc import Mapping
from ktx_daemon.telemetry.events import build_telemetry_event
from ktx_daemon.telemetry.identity import load_telemetry_identity
POSTHOG_PROJECT_API_KEY = ""
POSTHOG_HOST = ""
# PostHog public project ingestion key - safe to embed; capture-only, no read access.
POSTHOG_PROJECT_API_KEY = (
"phc_xbvZpbu8ZNLnogTbY7MEMWhCF2rzzApYsDndjKaRBXXx" # pragma: allowlist secret
)
POSTHOG_HOST = "https://us.i.posthog.com"
def _host(env: Mapping[str, str]) -> str: