Skip to content
caliper ui pro docs

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.

Pro

Trace 4bf92f35

842 ms · 12 spans · 7 services · 1 error
  • gateway
  • auth
  • billing
  • postgres
  • tax
  • renderer
  • queue
POST /api/invoicesgateway842 ms
auth.verifyauth38 ms
invoices.createbilling770 ms
SELECT customerspostgres22 ms
tax.quotetax312 ms
GET vatstack /ratestax140 ms
GET vatstack /rates (retry)tax152 ms
INSERT invoicespostgres31 ms
pdf.renderrenderer356 ms
fonts.loadrenderer64 ms
queue.publish invoice.createdqueue12 ms
audit.writeauth14 ms

↑ ↓ move · ← → collapse and expand · Enter selects

When to use

  • APM, observability and developer platforms.
  • Explaining why one request was slow.

When not to use

  • A flat list of log lines; use the log explorer.

Installation

terminal
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.

API reference

formatMs

0 props

No props of its own; it accepts the native props of its root element.

criticalSpans

0 props

No props of its own; it accepts the native props of its root element.

TraceWaterfall

7 props
PropTypeDefaultDescription
spans *readonly TraceSpan[]—
labelstring"Trace"
columnsreadonly TraceColumn[][]Extra columns beside each span's name, e.g. tokens or cost.
detail((span: TraceSpan) => ReactNode)—More detail for the selected span, under its attributes.
selectedstring | null—
onSelect((id: string | null) => void)—
classNamestring—

Keyboard

↓
Moves to the next item or value.
↑
Moves to the previous item or value.
→
Moves to the next item or value.
←
Moves to the previous item or value.
Enter
Activates the focused control.
Space
Activates the focused control.
Home
Jumps to the first item or the minimum.
End
Jumps to the last item or the maximum.

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.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/trace-waterfall.md

The index of every part is at /llms.txt.

More in Audit, logs & inbox