base_url to Fireworks and Arize AX captures each completion through openinference-instrumentation-openai.
This page uses Fireworks’ OpenAI-compatible API. There is no separate Fireworks-specific OpenInference instrumentor required.
Prerequisites
- Python 3.9+
- An Arize AX account (sign up)
- A
FIREWORKS_API_KEYfrom Fireworks AI
Launch Arize
- Sign in to your Arize AX account.
- From Space Settings, copy your Space ID and API Key. You will set them as
ARIZE_SPACE_IDandARIZE_API_KEYbelow.
Install
Configure credentials
Setup tracing
Run Fireworks AI
Expected output
Verify in Arize
- Open your Arize AX space and select project
fireworks-ai-tracing-example. - You should see a new trace within ~30 seconds containing a
ChatCompletionLLM span with prompt, response, model, token, and latency metadata. - If no traces appear, see Troubleshooting.
Check from the skill, CLI, or SDK
Confirm spans are actually reaching your Arize AX project. Use whichever fits your workflow — the skill and CLI work for any framework; the SDK check is shown for each language.- Arize skill (agent)
- AX CLI
- SDK
Install the Arize Skills plugin and let your coding agent check for you:Then prompt your agent:
Use the arize-trace skill to export and analyze recent traces from my project. Confirm spans are arriving, and summarize any errors or latency issues.
Troubleshooting
- No traces in Arize. Confirm
ARIZE_SPACE_IDandARIZE_API_KEYare set in the same shell that runsexample.py. - Fireworks spans missing but other spans present.
OpenAIInstrumentor().instrument(...)must run before anyimport openai. 401from Fireworks. Use your Fireworks API key, not your OpenAI or Arize API key.- Model not found. Confirm
FIREWORKS_MODELmatches a model identifier from the Fireworks model catalog.