Skip to content

StackDumpView

A captured stack dump: Go goroutines or JVM threads as searchable cards with state chips and a hide-runtime-only toggle, or the raw text when the format is not recognised. Takes either the raw text of a dump, which it parses, or the stacks records of one dump, which it renders directly (Go goroutine records as cards, a native dump’s raw text, a failed dump’s error). Filter state resets whenever the text or the records’ checkpoint changes.

Source

import { StackDumpView } from "@flanksource/clicky-ui/data";
Go Goroutines · Open in Storybook
With Header Actions · Open in Storybook
Jvm Threads · Open in Storybook

The props table documents the component-specific surface. Standard DOM attributes inherited from React, such as className, event handlers, and accessibility attributes, may also be accepted when the component’s prop type extends a native element.

Prop Type Default Description
collectedAt string — When the dump was collected (ISO timestamp), shown in the meta row. Defaults to the records' `takenAt`.
error string — Capture error, shown above the dump. Overrides the error of a failed record.
frameActions StackFrameActions — Trailing actions on each JVM stack frame, revealed on hover.
headerActions ReactNode — Right-aligned actions in the meta row (for example a Collect / Refresh button).
reason string — Why it was collected (for example a watchdog checkpoint), shown beside the time. Defaults to the records' `reason`.
records StackRecord[] — The records of one checkpoint of one process: Go goroutine records, a native dump record (its raw text is shown), or a failed dump's record (its error is shown). Keep the array referentially stable while the checkpoint is shown.
resolveSource JvmFrameSourceResolver — Supplies inline source under each JVM frame; a missing class must resolve to undefined.
singleItem boolean false The dump holds one, already-selected item. Suppresses the per-item filter UI (search, state chips, hide-runtime, count) and the meta row.
status "error" | (string & {}) | "ready" | "unsupported" — Capture status, drawn as a badge in the meta row.
text string — —