OPENAI_API_KEY too. Have an existing app? Let your coding agent set it up.
Instrument OpenAI
Register Phoenix as the trace destination and turn on auto-instrumentation. Phoenix instruments every installed OpenInference package it finds, OpenAI here.- Python
- TypeScript
Make a call
Any OpenAI call now produces a trace.- Python
- TypeScript
Look at the trace
Open thetracing-quickstart project in Phoenix and click the trace: the prompt, response, tokens, and latency are on the span. To trace your own code around the LLM call, wrap it with a decorator or traceChain.
Learn more about traces
Other ways to read your traces:- In code, with Extract data from spans.
- From a coding agent, with the CLI or MCP.
- By asking PXI, for example “why did this trace fail?”
- Across multi-turn conversations, with Sessions.

