Pro
Trace waterfall
A distributed trace as a waterfall: spans nested by parent, coloured by service, errors marked, the critical path on demand, zoom to any span, search by name or service, and the selected span’s attributes beside it.
pnpm dlx shadcn@latest add @caliper/trace-waterfallWhen to use
Use it for
- APM, observability and developer platforms.
- Explaining why one request was slow.
Skip it when
- A flat list of log lines; use the log explorer.
Installation
pnpm dlx shadcn@latest add @caliper/trace-waterfall
Adds its 8 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
Usage
Import it from your copy of the source. The example behind the preview comes with the source. It is built from formatMs, criticalSpans and TraceWaterfall.
import { formatMs, criticalSpans, TraceWaterfall } from "@/components/ui/trace-waterfall"
The worked example comes with Pro
The 38-line example behind the preview opens here, ready to copy.
- 626 Pro parts, blocks and page templates, all with source
- $149 once, with lifetime updates. No renewal
- A full refund within 14 days if it is not for you
API reference
formatMs
component
No props of its own; it accepts the native props of its root element.
criticalSpans
component
No props of its own; it accepts the native props of its root element.
TraceWaterfall
component
Accessibility
It exposes treegrid, row and gridcell semantics, with aria-labelledby, aria-hidden, aria-label, aria-describedby, aria-level and aria-expanded kept in step with state.
Motion
Transitions use the shared duration and easing tokens. Under prefers-reduced-motion those tokens collapse to instant and travel distances go to zero, so state changes still happen without movement.
Related
- Llm run traceOne agent or model run step by step: model calls, tools and retrieval on a waterfall with tokens and cost per step, totals for latency, tokens, cache hits and cost, a budget meter, and each step’s input and output.
- Log explorerSearch, filter and inspect log lines.
- Job runsScheduled jobs with each cron schedule said in words and the next run counting down, the last twenty runs as a strip of bars, run now, pause and resume, and every run’s log.