mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-12 13:18:59 +08:00
fix: correctly populate response_status (#7822)
Signed-off-by: Shivanshu Raj Shrivastava <shivanshu1333@gmail.com>
This commit is contained in:
parent
b66af786e6
commit
f4d029bd12
@ -411,7 +411,7 @@ describe('API Monitoring Utils', () => {
|
||||
const statusFilter = result.items.find(
|
||||
(item) =>
|
||||
item.key &&
|
||||
item.key.key === SPAN_ATTRIBUTES.STATUS_CODE &&
|
||||
item.key.key === SPAN_ATTRIBUTES.RESPONSE_STATUS_CODE &&
|
||||
item.value === statusCode,
|
||||
);
|
||||
expect(statusFilter).toBeDefined();
|
||||
|
@ -13,7 +13,6 @@ export const VIEW_TYPES = {
|
||||
// Span attribute keys - these are the source of truth for all attribute keys
|
||||
export const SPAN_ATTRIBUTES = {
|
||||
URL_PATH: 'http.url',
|
||||
STATUS_CODE: 'status_code',
|
||||
RESPONSE_STATUS_CODE: 'response_status_code',
|
||||
SERVER_NAME: 'net.peer.name',
|
||||
SERVER_PORT: 'net.peer.port',
|
||||
|
@ -1438,12 +1438,12 @@ export const getTopErrorsCoRelationQueryFilters = (
|
||||
{
|
||||
id: 'f6891e27',
|
||||
key: {
|
||||
key: 'status_code',
|
||||
dataType: DataTypes.Float64,
|
||||
key: 'response_status_code',
|
||||
dataType: DataTypes.String,
|
||||
type: '',
|
||||
isColumn: true,
|
||||
isJSON: false,
|
||||
id: 'status_code--float64----true',
|
||||
id: 'response_status_code--string----true',
|
||||
},
|
||||
op: '=',
|
||||
value: statusCode,
|
||||
|
Loading…
x
Reference in New Issue
Block a user