Skip to main content
GitHub

Traces

End-to-end visibility into agent execution.

Read traces in the dashboard — the REST API is not public yet

What runs today: traces are captured, stored, and shown in the dashboard. Everything on this page about what a trace is, and how to read one in the product, is current.

What does not run yet: the trace REST endpoints are not exposed outside the platform in this release, so a request from your own machine cannot reach them. The REST API reference describes them for when they are.

A trace represents a complete execution from request to response.

Trace Structure

Trace (trace_id: abc123)
├── Root Span (agent: orchestrator)
│   ├── LLM Span (model: gpt-4o, 234ms)
│   ├── Tool Span (tool: search, 1200ms)
│   └── Agent Span (agent: researcher)
│       ├── LLM Span (model: gpt-4o-mini, 156ms)
│       └── Tool Span (tool: fetch, 89ms)
└── Metadata
    ├── session_id
    └── environment

Trace Attributes

AttributeTypeDescription
trace_idstringUnique 32-char hex identifier
start_timetimestampTrace start time
end_timetimestampTrace end time
duration_msnumberTotal duration in milliseconds
has_errorsbooleantrue when a span of the trace has an error
span_countnumberTotal spans in trace
total_tokensnumberSum of all LLM tokens
total_cost_usdnumberSum of all LLM costs
agent_nameslistNames of the agents in the trace
error_codeslistError messages that the trace lists

Viewing Traces

Trace List

The trace list shows all traces with key metrics:

Trace list view with agent names, durations, tokens, costs, and status indicators

The KPI strip at the top shows: Total Traces, Error Rate, P50 Latency (with P90), P95 Latency (with P99), Avg Duration, and LLM Calls (with token count).

ColumnDescription
NameName of the root span. Click to view details
Trace IDShortened trace ID
SpansNumber of spans
DurationTotal latency
CostTotal USD cost
ErrorsError badge, when the trace has errors
TimeWhen the trace occurred

Filtering

Filter the trace list with the controls above it and the search box. There is no field:value query language — see Filtering and Search.

Trace Detail View

Waterfall

Click any trace to see the full execution waterfall with nested spans, timing, and LLM details:

The waterfall shows:

  • Span hierarchy with parent-child nesting
  • Parallel execution paths
  • Timing relationships
  • Per-span details (model, tokens, cost) in the detail panel

Timeline and Raw JSON

The trace page has three tabs: Span Waterfall, Timeline and Raw JSON.

Span Detail

Select a span to open its detail panel. The panel has the tabs Attributes and Events, and Tool I/O and Exceptions when the span has them. Prompt and completion text, when captured, appears among the attributes.

Content Privacy

Prompt and completion content is off by default. It is captured only when you pass trace_content=True to risicare.init() (or set RISICARE_TRACE_CONTENT=true).

Exporting Traces

API Export

Not available with an API key during the beta.

Dashboard Export

From the trace list, open the export menu and choose Export CSV or Export JSON. An export includes at most 100 traces. You cannot select individual traces to export.

Trace Sampling

For high-volume applications:

risicare.init(
    sample_rate=0.1  # Capture 10% of traces
)

Sampling is deterministic by trace_id for consistency.

Next Steps