diff --git a/packages/ui-patterns/src/Trace/Inspector.tsx b/packages/ui-patterns/src/Trace/Inspector.tsx index ea72f8b79df..b467a994a3e 100644 --- a/packages/ui-patterns/src/Trace/Inspector.tsx +++ b/packages/ui-patterns/src/Trace/Inspector.tsx @@ -108,7 +108,7 @@ function Value({ entryKey, value, kind }: ValueProps) { -
+            
               {stringifyValue(value)}
             
@@ -147,13 +147,23 @@ function KeyValue({ data, emptyMessage = 'No attributes', className }: KeyValueP {entries.map(([key, value]) => { const kind = detectValueKind(key, value) return ( - - - {key} + + + {key} - -
-
+ +
+
@@ -162,8 +172,8 @@ function KeyValue({ data, emptyMessage = 'No attributes', className }: KeyValueP variant="text" size="tiny" aria-label={`Copy ${key}`} - className="size-5 shrink-0 p-0 opacity-0 group-hover/kv:opacity-100 focus-visible:opacity-100" - icon={} + className="size-5 shrink-0 p-0" + icon={} onClick={() => copy(stringifyValue(value))} /> @@ -228,23 +238,33 @@ function SpanHeader({ span }: { span: Span }) { {span.name} -
-
Duration
-
{isRunning ? `${duration}…` : duration}
-
Started
-
+{formatMs(span.startMs - bounds[0])}
-
Span ID
-
- {span.id} -
+
+
+
Duration
+
+ {isRunning ? `${duration}…` : duration} +
+
+
+
Started
+
+ +{formatMs(span.startMs - bounds[0])} +
+
+
+
Span ID
+
+ {span.id} +
+
) @@ -349,7 +369,7 @@ export function Inspector({ spanId, emptyMessage, className, ...props }: Inspect data-trace-inspector data-empty={span ? undefined : ''} className={cn( - 'flex min-h-0 flex-col overflow-hidden border-l border-default bg-surface-100 text-sm', + 'flex min-h-0 flex-col overflow-hidden border-l border-default bg-surface-100 text-xs', className )} {...props} @@ -357,7 +377,7 @@ export function Inspector({ spanId, emptyMessage, className, ...props }: Inspect {!span && (
{emptyMessage ?? 'Select a span to see its details'}