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

telemetry.md

54 lines3.6 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 and request results, duration, release channel, and token counts when
9available. Child-agent token counts are reported separately from the main agent's. Model names
10are sent only when they appear in a provider's public model list.
11​
12Events do not include prompts, responses, file contents, authentication tokens, conversation IDs,
13raw provider events, or child-agent output.
14​
15T3 Code also sends relay connection traces to Axiom to diagnose T3 Connect connectivity.
16​
17To disable product events and relay tracing, set `T3CODE_TELEMETRY_ENABLED=false` in the server's
18environment before starting it. Relay tracing also stops when `T3CODE_OTEL_SDK_DISABLED` or
19`OTEL_SDK_DISABLED` turns OpenTelemetry export off. The web app in a browser, including one the
20`t3` CLI opens, does not read these variables.
21​
22An administrator can turn product events and relay tracing off for every user on a machine with
23a [managed policy](./managed-policy.md#other-capabilities).
24​
25The desktop app reads `T3CODE_TELEMETRY_ENABLED` from your shell profile (for example `~/.zshrc`) on macOS and
26Linux, so export it there and restart the app. On Windows, set it as a user environment variable.
27​
28## Mobile app crash reports
29​
30When the iOS or Android app crashes or hits an error, it sends a report to T3 Code: the error
31message, the stack trace, the app version, and the device model and OS version. Each launch also
32sends startup timings, and every report carries a random ID for the install. Reports go through
33the T3 Connect relay to Axiom. They do not include your threads, prompts, or connection details,
34but an error message can quote a value the app was handling.
35​
36To stop sending them, turn off **Send crash reports** in **Settings > About T3 Code > Diagnostics**.
37​
38## Export diagnostics to your own receiver
39​
40To send traces, metrics, or logs to an OpenTelemetry receiver, open
41**Settings > Maintenance > Diagnostics**, select an environment, and enter each signal's OTLP HTTP
42endpoint under **OpenTelemetry export** (for example `http://localhost:4318/v1/traces`). Save, then
43restart that environment's server. The receiver must be reachable from the server's machine.
44**Test** sends an empty export from the server to check an endpoint before or after you save it;
45saved endpoints are checked when the section opens. Checks send authentication headers only to
46the signal's currently running endpoint and do not follow redirects. To check a new endpoint
47that requires authentication, save it and restart the server first.
48​
49`T3CODE_OTLP_*_URL` and standard `OTEL_EXPORTER_OTLP_*` environment variables override the saved
50settings. An overridden signal shows **Set by environment** and names the variable that set it, and its
51**Test** checks the running endpoint instead of the field. For endpoints saved here or set with `T3CODE_OTLP_*_URL`, set `T3CODE_OTLP_HEADERS` for
52receivers that need authentication and `T3CODE_OTLP_PROTOCOL=http/protobuf` for receivers that do
53not accept JSON. An endpoint set with `OTEL_EXPORTER_OTLP_*` takes its headers and protocol from
54`OTEL_EXPORTER_OTLP_HEADERS` and `OTEL_EXPORTER_OTLP_PROTOCOL` instead.