Trace Waterfall

React trace waterfall that draws each span as a bar offset by start time and scaled by duration, indented by depth with a millisecond label for observability.

src/registry/ui/trace-waterfall.tsx/r/trace-waterfall.json
GET /api/gallery
100ms
auth
18ms
db.query
40ms
render
28ms

Trace

Installation#

bash
npx shadcn@latest add @minidev/trace-waterfall

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/trace-waterfall.json

Usage#

tsx
import { TraceWaterfall } from "@/components/ui/trace-waterfall"

export function Example() {
  return (
    <TraceWaterfall />
  )
}

API reference#

TraceWaterfall props
PropTypeDefault
spansSpan[][ { name: "GET /api/gallery", start: ...
classNamestring-
All Developer tool UI components for React