Skip to content

Commit 5434641

Browse files
authored
highlight selected trace in session; fix duration (#1003)
1 parent 4e825af commit 5434641

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

frontend/components/traces/sessions-table/columns.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export const columns: ColumnDef<SessionRow, any>[] = [
114114
return getDurationString(row.startTime, row.endTime);
115115
}
116116

117-
return row.duration.toFixed(3) + "s";
117+
return row.duration.toFixed(2) + "s";
118118
},
119119
header: "Duration",
120120
size: 100,

frontend/components/traces/sessions-table/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ function SessionsTableContent() {
210210
data={sessions}
211211
getRowId={(session) => get(session, ["id"], session.sessionId)}
212212
onRowClick={handleRowClick}
213-
focusedRowId={searchParams.get("sessionId")}
213+
focusedRowId={traceId || searchParams.get("traceId")}
214214
hasMore={hasMore}
215215
isFetching={isFetching}
216216
isLoading={isLoading || !shouldFetch}

0 commit comments

Comments
 (0)