Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

telemetry.md

50 lines3.3 KB

1# Product usage data
2​
3The T3 Code server sends product usage events to T3 Code's own endpoint at `ingest.t3.codes`,
4associated with a hashed account or installation identifier. To count how many installations one person
5uses, the server also sends hashed account identifiers: your T3 Connect account, your OpenAI and
6Claude accounts when you are signed in, and a random identifier for each device that connects. The endpoint keeps a copy of each
7event and forwards events to PostHog. Events include the provider, model, reasoning effort,
8permission mode, turn result, duration, release channel, and main-agent token totals when
9available.
10​
11Events do not include prompts, responses, file contents, authentication tokens, conversation IDs,
12raw provider events, or child-agent output. Child-agent token use is excluded from the totals.
13​
14T3 Code also sends relay connection traces to Axiom to diagnose T3 Connect connectivity.
15​
16To disable product events and relay tracing, set `T3CODE_TELEMETRY_ENABLED=false` in the server's
17environment before starting it. Relay tracing also stops when `T3CODE_OTEL_SDK_DISABLED` or
18`OTEL_SDK_DISABLED` turns OpenTelemetry export off. The web app in a browser, including one the
19`t3` CLI opens, does not read these variables.
20​
21The desktop app reads `T3CODE_TELEMETRY_ENABLED` from your shell profile (for example `~/.zshrc`) on macOS and
22Linux, so export it there and restart the app. On Windows, set it as a user environment variable.
23​
24## Mobile app crash reports
25​
26When the iOS or Android app crashes or hits an error, it sends a report to T3 Code: the error
27message, the stack trace, the app version, and the device model and OS version. Each launch also
28sends startup timings, and every report carries a random ID for the install. Reports go through
29the T3 Connect relay to Axiom. They do not include your threads, prompts, or connection details,
30but an error message can quote a value the app was handling.
31​
32To stop sending them, turn off **Send crash reports** in **Settings > About T3 Code > Diagnostics**.
33​
34## Export diagnostics to your own receiver
35​
36To send traces, metrics, or logs to an OpenTelemetry receiver, open
37**Settings > Maintenance > Diagnostics**, select an environment, and enter each signal's OTLP HTTP
38endpoint under **OpenTelemetry export** (for example `http://localhost:4318/v1/traces`). Save, then
39restart that environment's server. The receiver must be reachable from the server's machine.
40**Test** sends an empty export from the server to check an endpoint before or after you save it;
41saved endpoints are checked when the section opens. Checks send authentication headers only to
42the signal's currently running endpoint and do not follow redirects. To check a new endpoint
43that requires authentication, save it and restart the server first.
44​
45`T3CODE_OTLP_*_URL` and standard `OTEL_EXPORTER_OTLP_*` environment variables override the saved
46settings. An overridden signal shows **Set by environment** and names the variable that set it, and its
47**Test** checks the running endpoint instead of the field. For endpoints saved here or set with `T3CODE_OTLP_*_URL`, set `T3CODE_OTLP_HEADERS` for
48receivers that need authentication and `T3CODE_OTLP_PROTOCOL=http/protobuf` for receivers that do
49not accept JSON. An endpoint set with `OTEL_EXPORTER_OTLP_*` takes its headers and protocol from
50`OTEL_EXPORTER_OTLP_HEADERS` and `OTEL_EXPORTER_OTLP_PROTOCOL` instead.