Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

feat: httpCode and httpStatus is updated to code and method

Palash gupta08bbb0259d6d
diff --git a/frontend/src/container/Trace/TraceTable/index.tsx b/frontend/src/container/Trace/TraceTable/index.tsx
index 951c981ddd..18d73bf5f0 100644
--- a/frontend/src/container/Trace/TraceTable/index.tsx
+++ b/frontend/src/container/Trace/TraceTable/index.tsx
@@ -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,
},
];
diff --git a/frontend/src/types/reducer/trace.ts b/frontend/src/types/reducer/trace.ts
index 339fd63483..5989c58498 100644
--- a/frontend/src/types/reducer/trace.ts
+++ b/frontend/src/types/reducer/trace.ts
@@ -40,8 +40,8 @@ interface SpansAggregateData {
serviceName: string;
operation: string;
durationNano: number;
- httpCode: string;
- httpMethod: string;
+ statusCode: string;
+ method: string;
}
export interface Tags {