What are Traces
With Traces, dive into the workflow of each model generation and understand the inner workings of an LLM call on Orq.ai. Traces correspond to events within the generations. Events within a Deployment can be various:- Evaluators & Guardrails
- Retrieval using Knowledge Base
- Caching
- Retries and Fallbacks
Creating Traces
Traces are automatically generated when using Orq.ai Deployments. Create custom traces for application code using framework instrumentation or the Orq.ai SDK.Framework Instrumentation
For popular AI frameworks and libraries, use automatic instrumentation with OpenTelemetry:Framework Integrations
Explore automatic instrumentation for OpenAI, LangChain, LlamaIndex, CrewAI, Autogen, and 15+ other frameworks with OpenTelemetry integration.
Custom Tracing using the @traced decorator
For custom functions or application workflows, use the@traced decorator from the Python SDK. It works with both synchronous and async functions:

Custom trace with nested spans from @traced.
The
@traced decorator supports the following span types:Capture or suppress inputs/outputs with
capture_input and capture_output, and attach custom metadata with the attributes parameter:How to Lookup Traces
To find traces, head to the AI Studio and to the Traces section.
Visualizing traces
- The left column shows the list of Traces available.
- By selecting a trace, the middle column opens, showing the hierarchy of events shown in order of execution.
- By selecting a single trace, the right column opens, showing details for the specific step.
Trace Views
Each trace can be inspected in three views to suit different debugging and analysis needs.- Trace
- Thread
- Timeline
The Trace view shows the full execution tree for a single run. Each step is displayed hierarchically, including LLM calls, tool invocations, knowledge retrievals, and memory interactions. Use this view to inspect inputs, outputs, token usage, and latency at every step.For multi-agent runs, the hierarchy renders as an agent graph: parent agents and their sub-agent calls are shown as a nested tree, making it easy to follow how work was delegated across agents and where time was spent. See Agent Graphs for how graphs are produced and how to debug delegation paths.

Manually evaluate responses using Annotations directly on individual spans. Annotations defined in the project are available on all spans automatically. Learn more in Annotations.
Viewing Errors
Traces that encountered an error are marked with a red error status badge in the list. Use the Status filter to scope the list to errors only and identify failing traces quickly.
Traces list filtered to error status.
- Filter by Status: error and an Identity to see all errors for a specific user.
- Combine with Project or Metadata to narrow down failures to a particular environment or deployment.
Filtering Traces
Click next to the search bar to open the filter menu. Select a category to expand a searchable list of values and check one or more to apply.
Trace filter categories.
When working with Agents, access traces directly from the Agent page with automatic filtering for that specific agent.
The Messages count is calculated only for Agents running on Orq.ai. Traces imported from external frameworks have no value unless the instrumentation sends a numeric
agent.iterations.count attribute.Configuring Column
Columns can be enabled and toggled to display more available data in the traces list.
The above fields are displayable on the traces list.
Creating Custom Views
Save frequently used filter combinations as reusable views:- Set the desired filters
- Click All Rows (top right)
- Select Create New View
- Enter a title for the view
- Optionally check Set view private (default is shared with project members)
- The filtered view is saved and accessible from the All Rows dropdown
Review Traces
Click Review in the toolbar to open the review screen and step through traces one by one. Applying one or more filters first narrows the review queue to matching traces; with no filter active, Review steps through the current list.
The review screen for Traces.
- Left: Inputs and Metrics for the selected span.
- Center: Full trace conversation.
- Right: Annotation controls for manual review. Select in the Annotations panel header to create a new annotation without leaving the screen.
Correct an Evaluator Result
Hover an Evaluator result to reveal a , and select it to open a popover with:- Value: the corrected result, matching the Evaluator’s own output type (a toggle for boolean Evaluators, a text or number field otherwise).
- Explanation: an optional comment.

Correcting an Evaluator result in the Traces review screen.
This corrects the Evaluator’s result, not the AI response text. For rewriting the response itself, use the Logs Add a Text Correction flow.
See Correct an Evaluator Result in the API & SDK tab for the API/SDK equivalent.
Threads
Threads
Visualize conversation history as Threads to follow the full sequence of messages across an agent session.
Reference
Token and Cost Tracking
How token usage is captured and cost is calculated per LLM request.
Span Attributes
Complete reference for all
orq.* span attributes emitted on traces, webhook payloads, and trace exports.

