Skip to content

Commit 79c52a8

Browse files
authored
fix(agent-insights): Align column names with trace explorer (#94259)
Align column names with traces table in trace explorer. Add arrow to indicate sort order.
1 parent eb9a0fb commit 79c52a8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

static/app/views/insights/agentMonitoring/components/tracesTable.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import type {CursorHandler} from 'sentry/components/pagination';
1111
import Pagination from 'sentry/components/pagination';
1212
import Placeholder from 'sentry/components/placeholder';
1313
import TimeSince from 'sentry/components/timeSince';
14+
import {IconArrow} from 'sentry/icons';
1415
import {t} from 'sentry/locale';
1516
import {space} from 'sentry/styles/space';
1617
import {useLocation} from 'sentry/utils/useLocation';
@@ -44,8 +45,8 @@ const EMPTY_ARRAY: never[] = [];
4445

4546
const defaultColumnOrder: Array<GridColumnOrder<string>> = [
4647
{key: 'traceId', name: t('Trace ID'), width: 110},
47-
{key: 'transaction', name: t('Transaction'), width: COL_WIDTH_UNDEFINED},
48-
{key: 'duration', name: t('Duration'), width: 100},
48+
{key: 'transaction', name: t('Trace Root'), width: COL_WIDTH_UNDEFINED},
49+
{key: 'duration', name: t('Root Duration'), width: 130},
4950
{key: 'errors', name: t('Errors'), width: 100},
5051
{key: 'llmCalls', name: t('LLM Calls'), width: 110},
5152
{key: 'toolCalls', name: t('Tool Calls'), width: 110},
@@ -151,6 +152,7 @@ export function TracesTable() {
151152
return (
152153
<HeadCell align={rightAlignColumns.has(column.key) ? 'right' : 'left'}>
153154
{column.name}
155+
{column.key === 'timestamp' && <IconArrow direction="down" size="xs" />}
154156
{column.key === 'transaction' && <CellExpander />}
155157
</HeadCell>
156158
);
@@ -260,5 +262,6 @@ const HeadCell = styled('div')<{align: 'left' | 'right'}>`
260262
display: flex;
261263
flex: 1;
262264
align-items: center;
265+
gap: ${space(0.5)};
263266
justify-content: ${p => (p.align === 'right' ? 'flex-end' : 'flex-start')};
264267
`;

0 commit comments

Comments
 (0)