Skip to content

Commit dff8027

Browse files
betegonclaude
andcommitted
fix(trace): add fallback for missing span_id in trace view
Prevent rendering literal "undefined" when both span_id and event_id are absent on a span. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d1c32a9 commit dff8027

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/formatters/human.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1122,7 +1122,7 @@ function formatSpanSimple(span: TraceSpan, opts: FormatSpanOptions): void {
11221122
line += ` ${muted(`(${prettyMs(durationMs)})`)}`;
11231123
}
11241124

1125-
line += ` ${muted(span.span_id)}`;
1125+
line += ` ${muted(span.span_id ?? "")}`;
11261126

11271127
lines.push(line);
11281128

0 commit comments

Comments
 (0)