Click a step for its details
Click a step for its details. Use the arrow keys to move and fold.
One Langfuse trace as a waterfall of steps, with totals, filters, failure tracking and a details panel.
Click a step to open its details on the right: timing, first token and speed, the token split between new, cached and output, the failure path and its input and output, which load on demand. With nothing selected the panel summarizes the trace. Filter by generations, tools or errors, hide instant steps, fold branches with the chevrons or the arrow keys, and jump to the failing step. Traces above 60 steps start folded below the second level.
Options for the assembled component.
trace*TraceA trace from toTraces or toSession.
loadIo(node: TraceNode) => Promise<{ input?: string; output?: string }>Loads input and output when a step opens. Keep the function stable.
detail"dock""none"Dock shows details under the timeline. None leaves them to the host, for example a pane next to a whole session. Defaults to dock.
selectedId / onSelectstring | null / (id) => voidControlled selection. Omit to let the view keep it.
_langfuse/trace-view.tsxHolds the filter, folds and selection, and lays out the head, toolbar, waterfall and panel.
_langfuse/trace-head.tsxTitle, status, jump to failure and the six totals. Tokens show the cached share and a split bar.
_langfuse/node-row.tsxOne step: a bar for work, a bracket for wrapper spans, a diamond for instant steps, and a hatched wait before the first token.
_langfuse/node-panel.tsxDetails of the selected step, or a summary of the trace when none is selected.
_langfuse/to-trace.tsTurns Langfuse observation rows into traces with a tree, totals and failure origins.
_langfuse/observation.tsValidates a Langfuse v2 observations response at the boundary.
_langfuse/view-model.tsFilters, default folds, the axis, slowest steps, failure path and output speed.
Built on the Langfuse v2 observations data model. The sample session is redacted.
Click a step for its details
Click a step for its details. Use the arrow keys to move and fold.