hatchmark command line tool records one small anonymous event for each command and sends
them at most once an hour, so we can see which commands people use, which errors they hit, and how
long commands take. It never sends your specs, data, SQL, file paths or project names. You can turn it off at any time.
What is sent
At most one request an hour, posted tohttps://api.hatchmark.dev/v1/telemetry with the headers
Content-Type: application/json and User-Agent: hatchmark/<version>, carrying the machine’s
random ID and every event queued since the last request:
id belongs to the request; each event has the fields below.
Nothing else is sent, and the collector refuses any event with another field. It does not keep or
pass on your IP address, and it stores events with our analytics provider, PostHog, as anonymous
events with no person profile and no location lookup. Events carry no time of their own; they are
dated when the request arrives, so their times are accurate to about an hour.
When it is sent
- The first time a command runs with telemetry on, Hatchmark creates the random ID, prints a notice on stderr and records nothing for that command.
- After that, each command adds its event to a queue in the setting file (below). At most 100 events are kept; when the queue is full, the oldest event is dropped. Commands that run at the same moment take turns on the file; a command that finds it busy skips recording its event rather than wait.
- Before sending, every queued event is checked against the format above, and anything that doesn’t match, such as an edited file with extra fields, is dropped.
- When a command finishes and an hour or more has passed since the last request (or since the notice), Hatchmark empties the queue and sends all of it in one request. A separate background process sends it once, with a 3 second timeout, so a slow or missing network never slows a command down or changes its output or exit code. A request that fails is not retried; its events are dropped.
hatchmark telemetryitself is never recorded.
Turning it off
Any one of these turns telemetry off. They are checked in this order, and the first that applies wins. While one is in effect, nothing is recorded and nothing is sent:DO_NOT_TRACK=1in the environment (any value except empty,0orfalse).HATCHMARK_TELEMETRY_DISABLED=1in the environment (same values).telemetry: falsein the project’shatchmark.yaml, which turns it off for everyone who runs Hatchmark in that project, CI included.hatchmark initwritestelemetry: true, which leaves the choice to each person.hatchmark telemetry disable, which turns it off for every project on this machine and deletes the random ID and the queued events.hatchmark telemetry enableturns it back on with a new ID.
hatchmark telemetry disable deletes events already queued. The other switches pause
telemetry, so events queued before you set DO_NOT_TRACK, for example, are still sent once the
switch is gone. Run hatchmark telemetry disable to discard them.
hatchmark telemetry (or hatchmark telemetry status) shows whether events are sent, which switch
turned them off, the random ID, how many events are queued, and where the setting is stored. The setting lives in
telemetry.json under $XDG_CONFIG_HOME/hatchmark/, %APPDATA%\hatchmark\ on Windows, or
~/.config/hatchmark/ otherwise. The file holds whether telemetry is on (enabled), the ID, the
time of the last request and the queue, nothing else. When Hatchmark can’t write it, it records
and sends nothing. When the file exists but can’t be read or doesn’t have that shape, telemetry is
off and the file is left as it is until hatchmark telemetry enable or disable rewrites it.
In JSON mode hatchmark telemetry prints:
off is null when telemetry is on, otherwise one of DO_NOT_TRACK,
HATCHMARK_TELEMETRY_DISABLED, hatchmark.yaml, hatchmark telemetry disable or
unreadable setting.