mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-01 22:10:37 +08:00
feat: httpCode and httpStatus is updated to code and method
This commit is contained in:
parent
93638d5615
commit
08bbb0259d
@ -44,7 +44,7 @@ function TraceTable(): JSX.Element {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const getHttpMethodOrStatus = (
|
const getHttpMethodOrStatus = (
|
||||||
value: TableType['httpMethod'],
|
value: TableType['statusCode'],
|
||||||
): JSX.Element => {
|
): JSX.Element => {
|
||||||
if (value.length === 0) {
|
if (value.length === 0) {
|
||||||
return <Typography>-</Typography>;
|
return <Typography>-</Typography>;
|
||||||
@ -90,14 +90,14 @@ function TraceTable(): JSX.Element {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Method',
|
title: 'Method',
|
||||||
dataIndex: 'httpMethod',
|
dataIndex: 'method',
|
||||||
key: 'httpMethod',
|
key: 'method',
|
||||||
render: getHttpMethodOrStatus,
|
render: getHttpMethodOrStatus,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Status Code',
|
title: 'Status Code',
|
||||||
dataIndex: 'httpCode',
|
dataIndex: 'statusCode',
|
||||||
key: 'httpCode',
|
key: 'statusCode',
|
||||||
render: getHttpMethodOrStatus,
|
render: getHttpMethodOrStatus,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
@ -40,8 +40,8 @@ interface SpansAggregateData {
|
|||||||
serviceName: string;
|
serviceName: string;
|
||||||
operation: string;
|
operation: string;
|
||||||
durationNano: number;
|
durationNano: number;
|
||||||
httpCode: string;
|
statusCode: string;
|
||||||
httpMethod: string;
|
method: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Tags {
|
export interface Tags {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user