Skip to main content
OrcaRouter is an OpenAI-compatible AI gateway that routes requests across 200+ models. Its orcarouter/auto virtual model selects an upstream provider per request; you can also target specific models using a <provider>/<model> identifier. Because OrcaRouter mirrors the OpenAI API schema, you instrument it with the openinference-instrumentation-openai package by pointing the client’s base_url at OrcaRouter’s endpoint.

Prerequisites

Launch Arize

  1. Sign in to your Arize AX account.
  2. From Space Settings, copy your Space ID and API Key. You will set them as ARIZE_SPACE_ID and ARIZE_API_KEY below.

Install

Configure credentials

Setup tracing

Run OrcaRouter

orcarouter/auto selects an upstream provider per request. The span recorded in Arize AX will show the resolved upstream model name (e.g. deepseek-v4-flash-202505) rather than orcarouter/auto.To test without a funded account, replace orcarouter/auto with a free model such as deepseek/deepseek-v4-flash-free.

Expected output

Verify in Arize

  1. Open your Arize AX space and select project orcarouter-tracing-example.
  2. You should see a new trace within ~30 seconds containing a ChatCompletion LLM span with the prompt, response, and token usage attached. The model name on the span will be the upstream model OrcaRouter selected (e.g. deepseek-v4-flash), not the virtual orcarouter/auto identifier.
  3. 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.
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_ID and ARIZE_API_KEY are set in the same shell that runs example.py. Enable OpenTelemetry debug logs with export OTEL_LOG_LEVEL=debug and re-run.
  • OrcaRouter spans missing but other spans present. OpenAIInstrumentor().instrument(...) must run before any import openai. Make sure instrumentation.py is the first import in your entry point.
  • 401 from OrcaRouter. Use your OrcaRouter API key (from the OrcaRouter dashboard), not an OpenAI or other provider key.
  • 403 insufficient_user_quota. orcarouter/auto routes to paid upstream models and requires a funded OrcaRouter wallet. Add credit in the OrcaRouter dashboard, or use a free model such as deepseek/deepseek-v4-flash-free to test without balance.
  • Model not found. OrcaRouter’s primary virtual model is orcarouter/auto. You can also pass specific provider models in <provider>/<model> format (e.g. deepseek/deepseek-v4-flash-free, openai/gpt-4.1-mini). See the OrcaRouter documentation for available identifiers.

Resources

OrcaRouter Documentation

OpenInference OpenAI Instrumentor (used for OrcaRouter)

OrcaRouter on GitHub