Skip to content

Commit f94c59a

Browse files
authored
Format explorer end time (#1049)
* feat: format explorer endTime as timestamp * test: fix
1 parent 2863c9e commit f94c59a

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

projects/observability/src/pages/explorer/explorer-dashboard-builder.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ describe('Explorer dashboard builder', () => {
128128
expect.objectContaining({ title: 'Errors' }),
129129
expect.objectContaining({ title: 'Duration' }),
130130
expect.objectContaining({ title: 'Start Time' }),
131+
expect.objectContaining({ title: 'End Time' }),
131132
expect.objectContaining({ title: 'API Boundary Type' }),
132133
expect.objectContaining({ title: 'API Discovery State' }),
133134
expect.objectContaining({ title: 'API ID' }),

projects/observability/src/pages/explorer/explorer-dashboard-builder.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,21 @@ export class ExplorerDashboardBuilder {
280280
type: 'api-trace-navigation-handler'
281281
}
282282
},
283+
{
284+
type: 'table-widget-column',
285+
title: 'End Time',
286+
width: '220px',
287+
display: CoreTableCellRendererType.Timestamp,
288+
visible: false,
289+
value: {
290+
type: 'attribute-specification',
291+
attribute: 'endTime'
292+
},
293+
sort: TableSortDirection.Descending,
294+
'click-handler': {
295+
type: 'api-trace-navigation-handler'
296+
}
297+
},
283298
{
284299
type: 'table-widget-column',
285300
title: 'API Boundary Type',
@@ -467,6 +482,21 @@ export class ExplorerDashboardBuilder {
467482
type: 'span-trace-navigation-handler'
468483
}
469484
},
485+
{
486+
type: 'table-widget-column',
487+
title: 'End Time',
488+
width: '220px',
489+
display: CoreTableCellRendererType.Timestamp,
490+
visible: false,
491+
value: {
492+
type: 'attribute-specification',
493+
attribute: 'endTime'
494+
},
495+
sort: TableSortDirection.Descending,
496+
'click-handler': {
497+
type: 'span-trace-navigation-handler'
498+
}
499+
},
470500
{
471501
type: 'table-widget-column',
472502
visible: false,

0 commit comments

Comments
 (0)