Telemetry¶
A Hearth farm sends usage telemetry to TestZeus's Sentry, so we can see who uses Hearth and how, and fix what breaks in real farms. It is on by default, and one setting turns it off.
Turn it off¶
Or keep it on and say who you are: hearth up local --org "Acme QA" --contact qa@acme.com.
hearth up also turns it off when HEARTH_TELEMETRY=off or DO_NOT_TRACK=1 is set in your
shell. Pass the flag again on every hearth up, since an upgrade goes back to the chart's
defaults.
Set HEARTH_TELEMETRY=off (or DO_NOT_TRACK=1) in the environment of the gateway, the
operator, a browser pod or hearth-agent.
With telemetry off, nothing is sent and no connection to Sentry is made. The gateway and the
operator pass the setting on: browser pods get it from the operator, and Mac and Linux agents
follow the farm's setting from their heartbeat. An agent never sends telemetry while its farm has
it off, and HEARTH_TELEMETRY=off on the host keeps it off even when the farm has it on.
What is sent¶
| What | When | Contents |
|---|---|---|
| Errors and panics | When a component logs an error or crashes | The error message, stack trace, component (hearth-gateway, hearth-operator, hearth-node, hearth-agent), Hearth version, OS and architecture, and the last few warnings before it |
| Session allocation traces | Each new session | How long the session waited for a browser or device, the engine or platform and protocol, and the team as a hash |
| Farm snapshot | A minute after the gateway starts, then hourly | For each browser pool: engine, protocol, Playwright version, maxSessions and ready, busy and queued counts. For each device pool: platform, device model, OS version, maxSessions and counts. For each host: mode, OS, architecture, CPUs, memory, agent and Xcode versions. The number of teams, and the hashes of teams that opened sessions. Sessions started and refused since the last snapshot (by reason), and the total and longest queue wait |
Whose farm it is¶
Every record says which farm it came from, so TestZeus can tell farms apart and know who runs them:
| What | Where it comes from |
|---|---|
| Farm id | A random value made once per farm and kept in its Redis |
| Farm host name | The host name people and clients use to reach the gateway, e.g. hearth.acme.com: the chart's gateway.ingress.host, and the Host of requests the gateway serves. IP addresses, localhost and in-cluster names are left out |
| Location | Sentry records the public IP address the data comes from and turns it into a country and city |
| Organization and contact | telemetry.organization and telemetry.contact, or hearth up --org ... --contact .... Empty unless you fill them in |
| Teams | Each team as a short hash, different per farm: enough to count teams, not to name them |
What is never sent¶
- API keys, agent and pod tokens, join codes, passwords
- Team, pool, machine, device and app names
- Page URLs: your apps' or the pages your tests open
- Session names, test names, client user agents
- Videos, screenshots, logs and other artifacts
- Machine host names (Sentry's
server_nameis cleared)
Error messages are Hearth's own and can include an internal detail such as a pod name; that is the one place a name can appear. Turn telemetry off if that is too much.
Send it to your own Sentry¶
To keep the same errors, traces and snapshots for yourself, point the farm at your own Sentry project instead of TestZeus's:
telemetry:
enabled: true
organization: Acme QA
contact: qa@acme.com
dsn: https://<key>@<your-sentry-host>/<project>
environment: production
tracesSampleRate: 0.2 # trace a fifth of session allocations
snapshotSeconds: 3600
| Setting | Environment variable | Default |
|---|---|---|
telemetry.enabled |
HEARTH_TELEMETRY (on/off) |
on |
telemetry.dsn |
HEARTH_SENTRY_DSN |
TestZeus's project |
telemetry.tracesSampleRate |
HEARTH_TELEMETRY_TRACES_SAMPLE_RATE |
1.0 |
telemetry.environment |
HEARTH_TELEMETRY_ENVIRONMENT |
production |
telemetry.organization |
HEARTH_TELEMETRY_ORG |
empty |
telemetry.contact |
HEARTH_TELEMETRY_CONTACT |
empty |
telemetry.snapshotSeconds |
HEARTH_TELEMETRY_SNAPSHOT_SECS |
3600 |
DO_NOT_TRACK=1 turns telemetry off wherever it is set.
Network¶
Telemetry goes over HTTPS to *.ingest.us.sentry.io (or your own Sentry). The gateway, the
operator, browser pods and agents need outbound HTTPS for it; if your cluster blocks egress,
nothing is sent and the farm works the same.