@@ -1315,26 +1315,24 @@ function TraceView(props: { rootSpan: SpanProps; serviceNames: string[] }) {
1315
1315
) ;
1316
1316
}
1317
1317
1318
- function TraceSheet ( props : { trace : Trace | null } ) {
1318
+ function TraceSheet ( props : { trace : DocumentType < typeof TracesList_Trace > | null } ) {
1319
1319
const targetRef = useTargetReference ( ) ;
1320
1320
const [ activeView , setActiveView ] = useState < 'attributes' | 'events' | 'operation' > ( 'attributes' ) ;
1321
1321
const trace = props . trace ;
1322
1322
1323
- return null ;
1324
-
1325
1323
if ( ! trace ) {
1326
1324
return null ;
1327
1325
}
1328
1326
1329
1327
const attributes : Array < TraceAttribute > = [
1330
1328
{
1331
1329
name : 'graphql.operationKind' ,
1332
- value : trace . kind ,
1330
+ value : trace . operationType ,
1333
1331
category : 'GraphQL' ,
1334
1332
} ,
1335
1333
{
1336
1334
name : 'graphql.subgraphs' ,
1337
- value : trace . subgraphNames . join ( ', ' ) ,
1335
+ value : trace . subgraphs . join ( ', ' ) ,
1338
1336
category : 'GraphQL' ,
1339
1337
} ,
1340
1338
{
@@ -1359,7 +1357,7 @@ function TraceSheet(props: { trace: Trace | null }) {
1359
1357
} ,
1360
1358
{
1361
1359
name : 'http.status' ,
1362
- value : trace . httpStatus ,
1360
+ value : trace . httpStatusCode ,
1363
1361
category : 'HTTP' ,
1364
1362
} ,
1365
1363
] ;
@@ -1373,7 +1371,7 @@ function TraceSheet(props: { trace: Trace | null }) {
1373
1371
< SheetTitle className = "text-lg font-medium text-white" >
1374
1372
{ trace . operationName }
1375
1373
< span className = "text-muted-foreground ml-2 font-mono font-normal" >
1376
- { trace . operationHash . substring ( 0 , 4 ) }
1374
+ { trace . id . substring ( 0 , 4 ) }
1377
1375
</ span >
1378
1376
</ SheetTitle >
1379
1377
</ div >
@@ -1389,12 +1387,10 @@ function TraceSheet(props: { trace: Trace | null }) {
1389
1387
variant = "outline"
1390
1388
className = { cn (
1391
1389
'rounded-sm border-0 px-1 font-medium uppercase' ,
1392
- trace . status === 'ok'
1393
- ? 'bg-green-900/30 text-green-400'
1394
- : 'bg-red-900/30 text-red-400' ,
1390
+ trace . success ? 'bg-green-900/30 text-green-400' : 'bg-red-900/30 text-red-400' ,
1395
1391
) }
1396
1392
>
1397
- { trace . status }
1393
+ { trace . success ? 'Ok' : 'Error' }
1398
1394
</ Badge >
1399
1395
< span className = "font-mono uppercase text-gray-300" >
1400
1396
{ formatDate ( trace . timestamp , 'MMM dd HH:mm:ss' ) }
0 commit comments