Open History to see the last commit
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. The endpoint keeps a copy of each
5event and forwards events to PostHog. Events include the provider, model, reasoning effort,
6permission mode, turn result, duration, release channel, and main-agent token totals when
7available.
8
9Events do not include prompts, responses, file contents, authentication tokens, conversation IDs,
10raw provider events, or child-agent output. Child-agent token use is excluded from the totals.
11
12T3 Code also sends relay connection traces to Axiom to diagnose T3 Connect connectivity.
13
14To disable product events and relay tracing, set `T3CODE_TELEMETRY_ENABLED=false` in the server's
15environment before starting it. Relay tracing also stops when `T3CODE_OTEL_SDK_DISABLED` or
16`OTEL_SDK_DISABLED` turns OpenTelemetry export off. The web app in a browser, including one the
17`t3` CLI opens, does not read these variables.
18
19The desktop app reads `T3CODE_TELEMETRY_ENABLED` from your shell profile (for example `~/.zshrc`) on macOS and
20Linux, so export it there and restart the app. On Windows, set it as a user environment variable.
21
22## Export diagnostics to your own receiver
23
24To send traces, metrics, or logs to an OpenTelemetry receiver, open
25**Settings > General > Diagnostics**, select an environment, and enter each signal's OTLP HTTP
26endpoint under **OpenTelemetry export** (for example `http://localhost:4318/v1/traces`). Save, then
27restart that environment's server. The receiver must be reachable from the server's machine.
28**Test** sends an empty export from the server to check an endpoint before or after you save it;
29saved endpoints are checked when the section opens. Checks send authentication headers only to
30the signal's currently running endpoint and do not follow redirects. To check a new endpoint
31that requires authentication, save it and restart the server first.
32
33`T3CODE_OTLP_*_URL` and standard `OTEL_EXPORTER_OTLP_*` environment variables override the saved
34settings. For endpoints saved here or set with `T3CODE_OTLP_*_URL`, set `T3CODE_OTLP_HEADERS` for
35receivers that need authentication and `T3CODE_OTLP_PROTOCOL=http/protobuf` for receivers that do
36not accept JSON. An endpoint set with `OTEL_EXPORTER_OTLP_*` takes its headers and protocol from
37`OTEL_EXPORTER_OTLP_HEADERS` and `OTEL_EXPORTER_OTLP_PROTOCOL` instead.