# Application Developer Tool: Trace Waterfall

A distributed trace waterfall with a header of id, status, and duration above indented span rows whose bars sit on a shared time axis.

- Page: https://www.shadcn-ui-blocks.com/blocks/application-pro/developer-tools/trace-waterfall
- Collection: [Application](https://www.shadcn-ui-blocks.com/blocks/application-pro), Standard tier
- Group: [Developer Tools](https://www.shadcn-ui-blocks.com/blocks/application-pro/developer-tools)
- Created: 2026-07-14
- Preview image: https://www.shadcn-ui-blocks.com/blocks/application-pro/developer-tools/trace-waterfall.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/application-pro-developer-tools-trace-waterfall
```

Needs an API key from a Pro or Team plan: add `@shadcn-ui-blocks` to the registries in components.json with the key as an `Authorization: Bearer` header. Setup: https://www.shadcn-ui-blocks.com/docs/shadcn-cli. The MCP server installs it without the setup: https://www.shadcn-ui-blocks.com/docs/mcp.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: badge, button
- Installs to: `@/components/blocks/application-pro/developer-tools/trace-waterfall`

## About this block

Trace Waterfall is the span timeline for a single
distributed trace, trc_9f3ab21c, captured at 09:41:22
UTC with a total of 842 ms. The header pairs a 1 error
badge and an 842 ms total badge with View logs and Share
actions. Eight spans render as rows under a shared time
axis marked 0 ms to 840: the root GET /api/checkout on
edge-gateway holds the full width, and nested spans for
auth.verify, cart.load, pricing.calculate, and their
database and cache calls are offset and sized against
the same clock. The final span, payment.authorize on
the payments service, carries a destructive tint and a
footer note that card_declined came back from the
upstream processor after 2 attempts.

Each span is a typed record with left and width percent
values and an error flag, so the bars position purely
from data. The failing span swaps its bar and duration
colour to the destructive token rather than adding a
separate marker.

## When to use

Reach for this block on an observability or developer
tools page, wired to your tracing backend and keyed to a
trace id. Link each span to its logs and let the footer
band surface the first error so an engineer lands on the
failing call without scanning every row.

A natural flow around it on an Application Pro page:

**Before**

- [Log viewer](https://www.shadcn-ui-blocks.com/blocks/application-pro/developer-tools)
- [App shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells)

**After**

- [Status and health](https://www.shadcn-ui-blocks.com/blocks/application-pro/status-health)
- [Integrations](https://www.shadcn-ui-blocks.com/blocks/application-pro/integrations)

## What you can display

One strong use is the request trace waterfall. Other
timeline shapes:

- **Frontend trace.** Swap services for page, script,
  and paint phases to profile a slow route render.
- **Job pipeline.** Map each span to a queued job and
  show retries and wait time between stages.
- **Database trace.** Break one query into parse, plan,
  and execute spans to find where the time goes.

> Tip: keep every bar on one shared axis; the offset is
> what shows which spans overlap and which block.

## More in Application Developer Tools

- [Api Console](https://www.shadcn-ui-blocks.com/blocks/application-pro/developer-tools/api-console)
- [Build Status List](https://www.shadcn-ui-blocks.com/blocks/application-pro/developer-tools/build-status-list)
- [Cron Jobs Monitor](https://www.shadcn-ui-blocks.com/blocks/application-pro/developer-tools/cron-jobs-monitor)
- [Dependency Audit](https://www.shadcn-ui-blocks.com/blocks/application-pro/developer-tools/dependency-audit)
- [Deploy Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/developer-tools/deploy-panel)
- [Diff Viewer](https://www.shadcn-ui-blocks.com/blocks/application-pro/developer-tools/diff-viewer)
- [Env Vars Manager](https://www.shadcn-ui-blocks.com/blocks/application-pro/developer-tools/env-vars-manager)
- [Error Inbox](https://www.shadcn-ui-blocks.com/blocks/application-pro/developer-tools/error-inbox)
- [Feature Flags Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/developer-tools/feature-flags-panel)
- [Log Viewer](https://www.shadcn-ui-blocks.com/blocks/application-pro/developer-tools/log-viewer)
- [Migrations Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/developer-tools/migrations-panel)
- [SDK Quickstart](https://www.shadcn-ui-blocks.com/blocks/application-pro/developer-tools/sdk-quickstart)
- [Secrets Rotation Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/developer-tools/secrets-rotation-card)
- [SQL Query Editor](https://www.shadcn-ui-blocks.com/blocks/application-pro/developer-tools/sql-query-editor)
- [Terminal Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/developer-tools/terminal-panel)
- [Webhook Logs Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/developer-tools/webhook-logs-table)
