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.

fix: fixed the traces corelation query for status code bar charts

sawhil413b0d9faef9
diff --git a/frontend/src/container/ApiMonitoring/utils.tsx b/frontend/src/container/ApiMonitoring/utils.tsx
index 5eb1a64886..8dab31a5b6 100644
--- a/frontend/src/container/ApiMonitoring/utils.tsx
+++ b/frontend/src/container/ApiMonitoring/utils.tsx
@@ -615,14 +615,14 @@ const defaultGroupBy = [
key: 'http.url',
type: 'tag',
},
- {
- key: 'net.peer.port',
- dataType: DataTypes.Float64,
- type: 'tag',
- isColumn: false,
- isJSON: false,
- id: 'net.peer.port--float64--tag--false',
- },
+ // {
+ // key: 'net.peer.port',
+ // dataType: DataTypes.Float64,
+ // type: 'tag',
+ // isColumn: false,
+ // isJSON: false,
+ // id: 'net.peer.port--float64--tag--false',
+ // },
];
export const getEndPointsQueryPayload = (
@@ -3185,19 +3185,23 @@ export const getStatusCodeBarChartWidgetData = (
op: '=',
value: domainName,
},
- {
- id: '8b1be6f0',
- key: {
- dataType: DataTypes.String,
- id: 'http.url--string--tag--false',
- isColumn: false,
- isJSON: false,
- key: 'http.url',
- type: 'tag',
- },
- op: '=',
- value: endPointName,
- },
+ ...(endPointName
+ ? [
+ {
+ id: '8b1be6f0',
+ key: {
+ dataType: DataTypes.String,
+ id: 'http.url--string--tag--false',
+ isColumn: false,
+ isJSON: false,
+ key: 'http.url',
+ type: 'tag',
+ },
+ op: '=',
+ value: endPointName,
+ },
+ ]
+ : []),
...filters.items,
],
op: 'AND',