base_url to Fireworks and Phoenix captures each completion through openinference-instrumentation-openai.
This page uses Fireworks’ OpenAI-compatible API. There is no separate Fireworks-specific OpenInference instrumentor required.
Install
Setup
Add your Fireworks AI API key and the model you want to call, along with your Phoenix connection details, as environment variables:register function:
Run Fireworks AI
Observe
Now that you have tracing set up, all invocations of the OpenAI client pointed at Fireworks AI will be streamed to your running Phoenix for observability and evaluation. Each request appears as aChatCompletion LLM span with the prompt, response, model name, token usage, and latency.
Common Issues
- No traces in Phoenix: Confirm
PHOENIX_COLLECTOR_ENDPOINT(andPHOENIX_API_KEYif your Phoenix requires one) is set in the same shell that runs your app - Fireworks AI spans missing: Call
register()before you create the OpenAI client, and make sureopeninference-instrumentation-openaiis installed soauto_instrument=Truepicks it up 401from Fireworks: Use your Fireworks API key, not your OpenAI key- Model not found: Confirm
FIREWORKS_MODELmatches a model identifier from the Fireworks model catalog - Base URL: Ensure you’re using
https://api.fireworks.ai/inference/v1as the base URL

