Skip to main content

spawn_daemon_telemetry

Function spawn_daemon_telemetry 

Source
pub fn spawn_daemon_telemetry()
Expand description

Spawn the daemon’s telemetry loop (must run inside a Tokio runtime).

Without it, sends happen only inside an MCP server (tool-call ticks and exit), so installs that use lean-ctx through hooks, the CLI or the proxy were never counted. The daemon is the one long-lived process setup starts; it also forwards the counters other processes persisted. Eligibility is re-checked on every tick, so an opt-out takes effect without a restart.