Click a turn to open its trace
Click a block above or a turn below to open its trace.
A Langfuse session as a strip of turns and a list that opens each turn into its trace.
The strip shows every turn in time order. Each block is as wide as the square root of its duration, red when the turn failed and amber when only some steps did, and long idle gaps collapse into a marker with the time between turns. Click a block or a row to open its trace in place. The first failing turn starts open. Click any step of any open turn and its details show in a pane on the right of the whole session, which stays in view while the turns scroll. With nothing selected the pane summarizes the session, and a failure listed there opens its turn and selects the step. Jump to failure selects the failing step, and With errors keeps only the turns with errors. Below 980px the pane goes away and each trace docks its details at the bottom.
Options for the assembled component.
session*SessionA session from toSession.
loadIo(node: TraceNode) => Promise<{ input?: string; output?: string }>Used for the step shown in the pane or the dock. Keep the function stable.
defaultOpenIdstringnullTrace id to open first. Defaults to the first failing turn, then the longest. Null opens none.
detail"side""dock"Where step details go. Side puts one pane on the right of the session. Dock keeps them under each trace. Side falls back to dock below 980px. Defaults to side.
_langfuse/session-view.tsxHolds which turns are open, the filter and the jump, and lays out the head, strip and turn list.
_langfuse/session-head.tsxSession id, status and six totals. Duration also shows the idle time between turns.
_langfuse/session-strip.tsxOne block per turn with idle gaps compressed.
_langfuse/session-summary.tsxWhat the right pane shows with no step selected: tokens, models, failures and the slowest steps of the whole session.
_langfuse/turn-row.tsxA collapsible turn: number, name, offset, summary, tokens with cached share, duration and state.
_langfuse/session-model.tsTurn states, the strip layout, the turn to open first and the one line summary.
_langfuse/trace-view.tsxThe full trace of an open turn.
Built on the Langfuse v2 observations data model. The sample session is redacted.
Click a turn to open its trace
session-1demo · Jan 15, 09:30:00 UTC5 failedClick a block above or a turn below to open its trace.