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 Arize AX
To get started, sign up for a free Arize AX account. Then, from Settings → Service Keys, create a new API key with the Member role and copy your:- API Key (format
ak-...) - Space ID (format
U3BhY2U6...)
Configure trace export in TrueFoundry
In the TrueFoundry dashboard, navigate to AI Gateway → Controls → Settings → OTEL Config, then configure the OTLP exporter to point at Arize AX:- Set Config Type to
gRPC. - Set the Traces Endpoint to
otlp.arize.com:443. - Add two gRPC metadata headers:
api_key— your Arize API Keyspace_id— your Arize Space ID
- (Optional) Add resource attributes such as
model_idto enrich your traces with identifying metadata. - (Optional) Enable Exclude Request Data to omit request and response bodies if you don’t want prompt content sent to Arize.
- Click Save to activate automatic trace export.

Observe
Once configured, every request through the gateway is exported to Arize AX. In your Arize AX space, open the project for thetfy-llm-gateway service to see traces appear within ~30 seconds of activity. Each trace includes the model, prompt, response, token usage, and latency for the gateway request.