Skip to main content

Module telemetry

Module telemetry 

Source
Expand description

Anonymous usage data, off until the person says yes.

What is kept: a random install id, the version, the OS, the name of what was done (pack_added, check_run) and rounded counts. Never ids, titles, field values, file paths or model content. Everything is written to a local queue first so trumly telemetry show can display exactly what would be sent; sending is done elsewhere (the editor, or nothing at all) and a down endpoint costs nothing but a retry later.

State lives in ~/.trumly/telemetry.json (or $TRUMLY_HOME). DO_NOT_TRACK=1 or TRUMLY_TELEMETRY=off always wins.

Enums§

State

Functions§

ack
Drop the first n events once they have been sent.
bucket
A count rounded into a band, so the number itself says little.
chosen
What the person chose (ignoring the environment overrides).
endpoint
Where events go: $TRUMLY_TELEMETRY_URL, else endpoint in the config file, else nowhere (they stay local).
event
The event as it would be sent.
forced_off
Switched off from outside, whatever the file says.
install_id
The install id, if telemetry has been turned on at some point.
now_iso
2026-10-21T17:40:00Z, rounded down to the minute.
queued
The first max queued events, oldest first.
queued_count
record
Add an event someone else made (the editor’s) to the queue, if telemetry is on. Only the fields we define are kept.
set_state
state
What is in force: Off when forced off.
track
Record an event if telemetry is on. Never fails and never blocks on the network.
trumly_home
Where trumly keeps per-user files: $TRUMLY_HOME, else ~/.trumly.