feat: httpCode and httpStatus is updated to code and method

This commit is contained in:
Palash gupta 2022-04-19 00:21:30 +05:30
parent 93638d5615
commit 08bbb0259d
No known key found for this signature in database
GPG Key ID: 8FD05AE6F9150AD6
2 changed files with 7 additions and 7 deletions

View File

@ -44,7 +44,7 @@ function TraceTable(): JSX.Element {
};
const getHttpMethodOrStatus = (
value: TableType['httpMethod'],
value: TableType['statusCode'],
): JSX.Element => {
if (value.length === 0) {
return <Typography>-</Typography>;
@ -90,14 +90,14 @@ function TraceTable(): JSX.Element {
},
{
title: 'Method',
dataIndex: 'httpMethod',
key: 'httpMethod',
dataIndex: 'method',
key: 'method',
render: getHttpMethodOrStatus,
},
{
title: 'Status Code',
dataIndex: 'httpCode',
key: 'httpCode',
dataIndex: 'statusCode',
key: 'statusCode',
render: getHttpMethodOrStatus,
},
];

View File

@ -40,8 +40,8 @@ interface SpansAggregateData {
serviceName: string;
operation: string;
durationNano: number;
httpCode: string;
httpMethod: string;
statusCode: string;
method: string;
}
export interface Tags {