diff --git a/public/components/trace_analytics/components/traces/trace_table_helpers.tsx b/public/components/trace_analytics/components/traces/trace_table_helpers.tsx index 6d506714e..7de584ae9 100644 --- a/public/components/trace_analytics/components/traces/trace_table_helpers.tsx +++ b/public/components/trace_analytics/components/traces/trace_table_helpers.tsx @@ -115,6 +115,17 @@ export const getTableColumns = ( 'No' ); + const renderStatusCodeErrorsField = (item: number) => + item === undefined || item === null ? ( + '-' + ) : item === 2 ? ( // Error status code is 2 + + Yes + + ) : ( + 'No' + ); + const renderDurationField = (item: number) => item ? {round(nanoToMilliSec(Math.max(0, item)), 2)} : '-'; @@ -166,7 +177,7 @@ export const getTableColumns = ( name: 'Errors', align: 'right', sortable: true, - render: renderErrorsField, + render: renderStatusCodeErrorsField, }, { field: 'endTime',