Skip to content

Commit 782a58f

Browse files
feat: adding error column in trace table (#786)
* feat: adding error column in trace table
1 parent fa80f9a commit 782a58f

File tree

4 files changed

+53
-0
lines changed

4 files changed

+53
-0
lines changed

projects/observability/src/pages/apis/api-detail/traces/api-trace-list.dashboard.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,19 @@ export const apiTraceListDashboard = {
5858
type: 'api-trace-navigation-handler'
5959
}
6060
},
61+
{
62+
type: 'table-widget-column',
63+
title: 'Errors',
64+
width: '80px',
65+
filterable: true,
66+
value: {
67+
type: 'attribute-specification',
68+
attribute: 'apiTraceErrorSpanCount'
69+
},
70+
'click-handler': {
71+
type: 'api-trace-navigation-handler'
72+
}
73+
},
6174
{
6275
type: 'table-widget-column',
6376
title: 'Duration',

projects/observability/src/pages/apis/service-detail/traces/service-trace-list.dashboard.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,19 @@ export const serviceTraceListDashboard = {
8484
type: 'api-trace-navigation-handler'
8585
}
8686
},
87+
{
88+
type: 'table-widget-column',
89+
title: 'Errors',
90+
width: '80px',
91+
filterable: true,
92+
value: {
93+
type: 'attribute-specification',
94+
attribute: 'apiTraceErrorSpanCount'
95+
},
96+
'click-handler': {
97+
type: 'api-trace-navigation-handler'
98+
}
99+
},
87100
{
88101
type: 'table-widget-column',
89102
title: 'Duration',

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ describe('Explorer dashboard builder', () => {
125125
expect.objectContaining({ title: 'Endpoint' }),
126126
expect.objectContaining({ title: 'Exit Calls' }),
127127
expect.objectContaining({ title: 'Status' }),
128+
expect.objectContaining({ title: 'Errors' }),
128129
expect.objectContaining({ title: 'Duration' }),
129130
expect.objectContaining({ title: 'Start Time' }),
130131
expect.objectContaining({ title: 'API Boundary Type' }),

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

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,19 @@ export class ExplorerDashboardBuilder {
239239
type: 'api-trace-navigation-handler'
240240
}
241241
},
242+
{
243+
type: 'table-widget-column',
244+
title: 'Errors',
245+
width: '80px',
246+
filterable: true,
247+
value: {
248+
type: 'attribute-specification',
249+
attribute: 'apiTraceErrorSpanCount'
250+
},
251+
'click-handler': {
252+
type: 'api-trace-navigation-handler'
253+
}
254+
},
242255
{
243256
type: 'table-widget-column',
244257
title: 'Duration',
@@ -413,6 +426,19 @@ export class ExplorerDashboardBuilder {
413426
type: 'span-trace-navigation-handler'
414427
}
415428
},
429+
{
430+
type: 'table-widget-column',
431+
title: 'Errors',
432+
width: '80px',
433+
filterable: true,
434+
value: {
435+
type: 'attribute-specification',
436+
attribute: 'apiTraceErrorSpanCount'
437+
},
438+
'click-handler': {
439+
type: 'api-trace-navigation-handler'
440+
}
441+
},
416442
{
417443
type: 'table-widget-column',
418444
title: 'Duration',

0 commit comments

Comments
 (0)