Skip to content

Commit

Permalink
feat(weave): enable latency, status sorting in trace table
Browse files Browse the repository at this point in the history
  • Loading branch information
bcsherma committed Feb 27, 2025
1 parent 6cdcfee commit 82d2f57
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,10 @@ function buildCallsTableColumns(
// },
// },
{
field: 'status',
field: 'summary.weave.status',
headerName: 'Status',
headerAlign: 'center',
sortable: false,
sortable: true,
// disableColumnMenu: true,
resizable: false,
width: 59,
Expand Down Expand Up @@ -618,14 +618,14 @@ function buildCallsTableColumns(
});

cols.push({
field: 'latency',
field: 'summary.weave.latency_ms',
headerName: 'Latency',
width: 100,
minWidth: 100,
maxWidth: 100,
// Should probably have a custom filter here.
filterable: false,
sortable: false,
sortable: true,
valueGetter: (unused: any, row: any) => {
if (traceCallStatusCode(row) === 'UNSET') {
// Call is still in progress, latency will be 0.
Expand Down

0 comments on commit 82d2f57

Please sign in to comment.