What is a Trace?
A trace represents the complete journey of a single request through your AI application. It captures every operation involved in handling that request—from the initial user input to the final response—including LLM calls, retrieval steps, tool executions, and database queries. Each trace is composed of spans, which represent discrete operations within the request lifecycle. Spans are organized hierarchically, showing parent-child relationships that reveal how operations are nested and sequenced. Netra’s tracing is built on OpenTelemetry standards, an industry-standard observability framework. This ensures compatibility with any OTLP-compliant backend and allows you to leverage existing OpenTelemetry tooling and instrumentation.Why Tracing Matters for AI Applications
Traditional logging captures isolated events. Tracing connects them into a coherent story, which is essential for AI systems where:- Multiple LLM calls may happen in sequence or parallel
- Agent decisions trigger unpredictable tool executions
- RAG pipelines combine retrieval, embedding, and generation steps
- Costs accumulate across many model invocations
| Capability | What It Enables |
|---|---|
| Diagnose failures | Pinpoint exactly where and why a request failed |
| Analyze latency | Identify slow operations across the request lifecycle |
| Audit agent behavior | Review the sequence of decisions and actions in agentic workflows |
| Track costs | Correlate token usage and costs to specific requests |
| Debug prompts | See exact inputs and outputs for each LLM call |
Getting Started with Tracing
Setting up tracing in Netra takes just a few lines of code:Quick Start: Tracing
Follow the step-by-step guide to see your first trace
Viewing Traces in Netra
Access traces from the Netra dashboard by navigating to Observability → Traces. The Traces page provides:- Trace list - All captured traces with timestamps, duration, status, and token usage
- Search and filters - Find traces by name, time range, status, or custom attributes
- Configurable columns - Customize which fields are visible
- Saved views - Persist filter and column configurations for recurring workflows
Tracing Methods
Netra offers three ways to add tracing to your application:| Method | Best For | Effort |
|---|---|---|
| Auto Instrumentation | Quick setup, supported libraries | Zero code changes |
| Decorators | Functions and classes | Minimal code changes |
| Manual Tracing | Custom operations, fine-grained control | Full control |
Learn More
Spans
Understand span types, attributes, and hierarchy
Configuration
Configure tracing behavior and export options
Tutorials
- Comparing Traces - Debug regressions by comparing traces side-by-side
- Custom Trace Views - Create saved views for your team’s workflows