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

This commit is contained in:
sawhil 2025-04-26 08:45:24 +05:30 committed by Sahil Khan
parent b24095236f
commit 413b0d9fae

View File

@ -615,14 +615,14 @@ const defaultGroupBy = [
key: 'http.url', key: 'http.url',
type: 'tag', type: 'tag',
}, },
{ // {
key: 'net.peer.port', // key: 'net.peer.port',
dataType: DataTypes.Float64, // dataType: DataTypes.Float64,
type: 'tag', // type: 'tag',
isColumn: false, // isColumn: false,
isJSON: false, // isJSON: false,
id: 'net.peer.port--float64--tag--false', // id: 'net.peer.port--float64--tag--false',
}, // },
]; ];
export const getEndPointsQueryPayload = ( export const getEndPointsQueryPayload = (
@ -3185,6 +3185,8 @@ export const getStatusCodeBarChartWidgetData = (
op: '=', op: '=',
value: domainName, value: domainName,
}, },
...(endPointName
? [
{ {
id: '8b1be6f0', id: '8b1be6f0',
key: { key: {
@ -3198,6 +3200,8 @@ export const getStatusCodeBarChartWidgetData = (
op: '=', op: '=',
value: endPointName, value: endPointName,
}, },
]
: []),
...filters.items, ...filters.items,
], ],
op: 'AND', op: 'AND',