Agent OPS Trace Detail
Span waterfall of one LLM request with nested spans, inputs, outputs, tokens and cost.
Choose the primitives library your project already uses. Both look the same: your theme, not the variant, controls colors, shape, type and motion.
About this page
What it's for
- Span waterfall of one LLM request with nested spans, inputs, outputs, tokens and cost.
- Detail page for a failed LLM request showing the failing span and its error.
Includes
- Span waterfall
- Flame view
- Nested spans
- Collapsible spans
- Span input output json
- Model reasoning panel
- Token and cost breakdown
- Error highlight
Works with
- Radix UI and Base UI primitives (pick the one your project uses)
- React 19 and Tailwind CSS 4 in Next.js (App Router), Vite, React Router or TanStack Start, installed with the agentic-ui or shadcn CLI
- Your theme tokens, in light and dark mode
- 1 template or blueprint on this site use it (below)
Install
Included with Agentic UI Kit (one-time license). Install needs your license key: see pricing · connect your project.
Agentic UI CLI
agentic-ui add agent-ops-trace-detailInstalls through shadcn and adapts the component to your design tokens.
shadcn CLI
npx shadcn@4.17.0 add @agentic-ui/agent-ops-trace-detailUsed in
- Type
- Page
- Variants
- Radix UI and Base UI
- Themes
- Light and dark
- Widths
- Preview it at desktop, tablet and mobile widths above.
- Motion
- Animated, with a reduced-motion fallback
- Sample data
- Ships with sample data in
world.ts,world-plan.ts,people.ts,span-kit.ts,models.ts,span-flows.ts,content.ts,demo.ts,seed.ts,prompts.ts,prompt-texts.ts,evals.ts,datasets.ts; replace it with your own.
- npm packages
lucide-react- Registry dependencies
ai-agent-run-traceai-reasoning-panelcode-json-viewerdev-log-taillib-primitives- Files
33 files
- components/agentic-ui/agent-ops-trace-detail/screens/trace-detail.tsx
- components/agentic-ui/agent-ops-trace-detail/data/world.ts
- components/agentic-ui/agent-ops-trace-detail/lib/types.ts
- components/agentic-ui/agent-ops-trace-detail/lib/rng.ts
- components/agentic-ui/agent-ops-trace-detail/lib/clock.ts
- components/agentic-ui/agent-ops-trace-detail/data/world-plan.ts
- components/agentic-ui/agent-ops-trace-detail/data/people.ts
- components/agentic-ui/agent-ops-trace-detail/data/span-kit.ts
- components/agentic-ui/agent-ops-trace-detail/data/models.ts
- components/agentic-ui/agent-ops-trace-detail/data/span-flows.ts
- components/agentic-ui/agent-ops-trace-detail/data/content.ts
- components/agentic-ui/agent-ops-trace-detail/data/demo.ts
- components/agentic-ui/agent-ops-trace-detail/components/trace-views-tabs.tsx
- components/agentic-ui/agent-ops-trace-detail/lib/format.ts
- components/agentic-ui/agent-ops-trace-detail/lib/waterfall.ts
- components/agentic-ui/agent-ops-trace-detail/lib/trace-adapters.ts
- components/agentic-ui/agent-ops-trace-detail/components/trace-waterfall.tsx
- components/agentic-ui/agent-ops-trace-detail/components/common.tsx
- components/agentic-ui/agent-ops-trace-detail/components/trace-flame.tsx
- components/agentic-ui/agent-ops-trace-detail/components/trace-cost.tsx
- components/agentic-ui/agent-ops-trace-detail/components/span-detail.tsx
- components/agentic-ui/agent-ops-trace-detail/components/trace-header.tsx
- components/agentic-ui/agent-ops-trace-detail/components/notice.tsx
- components/agentic-ui/agent-ops-trace-detail/components/trace-dialogs.tsx
- components/agentic-ui/agent-ops-trace-detail/lib/store.ts
- components/agentic-ui/agent-ops-trace-detail/lib/slice.ts
- components/agentic-ui/agent-ops-trace-detail/lib/reducer.ts
- components/agentic-ui/agent-ops-trace-detail/lib/eval-scoring.ts
- components/agentic-ui/agent-ops-trace-detail/data/seed.ts
- components/agentic-ui/agent-ops-trace-detail/data/prompts.ts
- components/agentic-ui/agent-ops-trace-detail/data/prompt-texts.ts
- components/agentic-ui/agent-ops-trace-detail/data/evals.ts
- components/agentic-ui/agent-ops-trace-detail/data/datasets.ts
Related components
Agent OPS Datasets
Evaluation datasets of inputs and expected answers built from production traces.
Details and live previewAgent OPS Evals
Eval runs comparing two prompt versions and models with score charts and a results matrix.
Details and live previewAgent OPS Keys
API key management for a tracing product with create, copy once and revoke.
Details and live previewAgent OPS Overview
LLM cost, latency p50 and p95, error rate and token usage over time with top models.
Details and live preview