+ {spans.map((s, idx) => {
+ const name = typeof s === 'object' && s ? (s as any).name : 'span';
+ const stage = typeof s === 'object' && s ? (s as any).stage : '';
+ const duration =
+ typeof s === 'object' && s ? (s as any).durationMs : undefined;
+ const attrs =
+ typeof s === 'object' && s ? (s as any).attributes : undefined;
+
+ return (
+
+
+ {String(stage || name)}
+
+
+ {typeof duration === 'number' ? `${duration.toFixed(1)}ms` : ''}
+
+ {attrs && (
+ {truncateJSON(attrs, 220)}
+ )}
+
+ );
+ })}
+