Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fiery-sloths-shout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@openchoreo/backstage-plugin-openchoreo-observability': patch
---

Remove the End Time column from the traces table and widen the Trace Name column.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ describe('TracesTable', () => {

expect(screen.getByText('Trace Name')).toBeInTheDocument();
expect(screen.getByText('Start Time')).toBeInTheDocument();
expect(screen.getByText('End Time')).toBeInTheDocument();
expect(screen.getByText('Duration')).toBeInTheDocument();
expect(screen.getByText('Number of Spans')).toBeInTheDocument();
expect(screen.getByText('Details')).toBeInTheDocument();
Expand Down Expand Up @@ -157,4 +156,12 @@ describe('TracesTable', () => {

expect(container.querySelector('[class*="errorStripe"]')).toBeNull();
});

// Start time and duration provide enough timing information without cluttering the table.
it('does not display end time in the traces table', () => {
renderTable();

expect(screen.queryByText('End Time')).not.toBeInTheDocument();
expect(screen.queryByText(sampleTrace.endTime)).not.toBeInTheDocument();
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ const HEADER_COLUMNS: {
}[] = [
{ key: 'traceName', label: 'Trace Name' },
{ key: 'startTime', label: 'Start Time' },
{ key: 'endTime', label: 'End Time' },
{ key: 'duration', label: 'Duration' },
{ key: 'spanCount', label: 'Number of Spans' },
{ key: 'details', label: 'Details', align: 'right' },
Expand Down Expand Up @@ -152,12 +151,6 @@ export const TracesTable: FC<TracesTableProps> = ({
>
{trace.startTime}
</Box>
<Box
style={getColumnStyle('endTime')}
className={`${classes.cell} ${classes.traceCell}`}
>
{trace.endTime}
</Box>
<Box
style={getColumnStyle('duration')}
className={`${classes.cell} ${classes.traceCell}`}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { makeColumnStyle } from '@openchoreo/backstage-plugin-react';
export type TracesColumn =
| 'traceName'
| 'startTime'
| 'endTime'
| 'duration'
| 'spanCount'
| 'details';
Expand All @@ -19,9 +18,8 @@ export type TracesColumn =
* total (88%) leaves the same trailing whitespace MUI's table did.
*/
export const getColumnStyle = makeColumnStyle<TracesColumn>({
traceName: '0 0 12%',
traceName: '0 0 32%',
startTime: '0 0 20%',
endTime: '0 0 20%',
duration: '0 0 12%',
spanCount: '0 0 12%',
details: '0 0 12%',
Expand Down
Loading