This page configures the gateway to export traces for all of its traffic. To instead instrument your own application’s calls to the gateway from Python, see the TrueFoundry LLM provider integration.
Launch Phoenix
The gateway exports traces from TrueFoundry’s infrastructure, so it needs a Phoenix instance it can reach over the internet. The simplest option is a free Phoenix Cloud account; a self-hosted Phoenix with a public HTTPS endpoint also works. A Phoenix running onlocalhost is not reachable from the gateway.
From the settings page in your Phoenix instance, copy your:
- Endpoint — for Phoenix Cloud,
https://app.phoenix.arize.com/s/<your-space-name> - API key — required when authentication is enabled, as it is on Phoenix Cloud
Configure trace export in TrueFoundry
In the TrueFoundry dashboard, navigate to AI Gateway → Controls → Settings, scroll to OTEL Config, and click the edit button. Then enable OTEL Traces Exporter Configuration and configure it to point at Phoenix:- Set Config Type to HTTP Configuration.
- Set the Traces Endpoint to your Phoenix endpoint followed by
/v1/traces, for examplehttps://app.phoenix.arize.com/s/<your-space-name>/v1/traces. - Set Encoding to Proto. Phoenix accepts OTLP over HTTP with protobuf encoding only.
- Click + Add Headers and add an
Authorizationheader with the valueBearer <your-phoenix-api-key>. Skip this step if your Phoenix instance doesn’t have authentication enabled. - Under Additional Resource Attributes, add
openinference.project.namewith the Phoenix project name you want, such astruefoundry-gateway. Without it, gateway traces land in thedefaultproject. - (Optional) Enable Exclude Request Data to omit LLM and MCP request and response bodies if you don’t want prompt content sent to Phoenix.
- Click Save to activate automatic trace export.
Observe
Once configured, every request through the gateway is exported to Phoenix. Open the project you set inopeninference.project.name to see traces appear shortly after gateway activity. Each trace includes the model, prompt, response, token usage, and latency for the gateway request, with the tfy-llm-gateway service name.
Troubleshooting
- No traces in Phoenix. Confirm the endpoint ends in
/v1/traces, the encoding is Proto rather than Json, and theAuthorizationheader value starts withBearer. - Traces land in the
defaultproject. Confirm theopeninference.project.nameresource attribute is set in the OTEL config.

