Learn to compare AI traces side-by-side in Netra to debug regressions and analyze performance differences between prompt versions or model updates.
Trace comparison helps you understand why two executions of the same workflow produced different results, latencies, or costs. This is useful for debugging regressions, A/B testing prompts, and analyzing performance variations.
The comparison view displays two traces side-by-side, making it easy to spot differences in execution flow, timing, and outcomes.
Each trace shows its complete timeline with expandable spans. You can see:
Trace ID and timestamp at the top of each panel
Hierarchical span structure showing the full execution flow (e.g., pdf-qa-query → retrieval → query-embedding → openai.embedding)
Duration for each span displayed on the right side
Color coding — error spans are shown in red, successfully executed spans in green
Click on any span to expand it and see its child spans. The Metadata panel below each timeline shows detailed attributes for the selected span — session ID, user ID, environment, HTTP details, instrumentation info, and any custom attributes you’ve added. For LLM calls, this also includes the full prompt and response content.