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,19 +3185,23 @@ export const getStatusCodeBarChartWidgetData = (
op: '=', op: '=',
value: domainName, value: domainName,
}, },
{ ...(endPointName
id: '8b1be6f0', ? [
key: { {
dataType: DataTypes.String, id: '8b1be6f0',
id: 'http.url--string--tag--false', key: {
isColumn: false, dataType: DataTypes.String,
isJSON: false, id: 'http.url--string--tag--false',
key: 'http.url', isColumn: false,
type: 'tag', isJSON: false,
}, key: 'http.url',
op: '=', type: 'tag',
value: endPointName, },
}, op: '=',
value: endPointName,
},
]
: []),
...filters.items, ...filters.items,
], ],
op: 'AND', op: 'AND',