Agent Tracing: See Every Tool Call and Provider Attempt
Agent Tracing: See Every Tool Call and Provider Attempt
OpenRouter describes agent tracing that records each step of an agent run as a timed OpenTelemetry span, combining spans from your own code (tool calls and run outcome) with Broadcast spans for each model generation and provider attempt in a single trace. In 27 test runs of an order-support agent across three models, the agent's spans caught bad tool arguments in all 9 runs where they occurred, while OpenRouter's spans showed which provider served each call, three recovered provider failures, and that a 133-second model call was mostly spent waiting on the provider. Setup requires adding a Broadcast destination and passing trace id and span id in the request's trace field, with Privacy Mode available to drop prompt and completion text while keeping tokens, cost, and timing.
Source: OpenRouter Announcements · openrouter.ai