mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-13 04:29:04 +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(
|
const statusFilter = result.items.find(
|
||||||
(item) =>
|
(item) =>
|
||||||
item.key &&
|
item.key &&
|
||||||
item.key.key === SPAN_ATTRIBUTES.STATUS_CODE &&
|
item.key.key === SPAN_ATTRIBUTES.RESPONSE_STATUS_CODE &&
|
||||||
item.value === statusCode,
|
item.value === statusCode,
|
||||||
);
|
);
|
||||||
expect(statusFilter).toBeDefined();
|
expect(statusFilter).toBeDefined();
|
||||||
|
@ -13,7 +13,6 @@ export const VIEW_TYPES = {
|
|||||||
// Span attribute keys - these are the source of truth for all attribute keys
|
// Span attribute keys - these are the source of truth for all attribute keys
|
||||||
export const SPAN_ATTRIBUTES = {
|
export const SPAN_ATTRIBUTES = {
|
||||||
URL_PATH: 'http.url',
|
URL_PATH: 'http.url',
|
||||||
STATUS_CODE: 'status_code',
|
|
||||||
RESPONSE_STATUS_CODE: 'response_status_code',
|
RESPONSE_STATUS_CODE: 'response_status_code',
|
||||||
SERVER_NAME: 'net.peer.name',
|
SERVER_NAME: 'net.peer.name',
|
||||||
SERVER_PORT: 'net.peer.port',
|
SERVER_PORT: 'net.peer.port',
|
||||||
|
@ -1438,12 +1438,12 @@ export const getTopErrorsCoRelationQueryFilters = (
|
|||||||
{
|
{
|
||||||
id: 'f6891e27',
|
id: 'f6891e27',
|
||||||
key: {
|
key: {
|
||||||
key: 'status_code',
|
key: 'response_status_code',
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.String,
|
||||||
type: '',
|
type: '',
|
||||||
isColumn: true,
|
isColumn: true,
|
||||||
isJSON: false,
|
isJSON: false,
|
||||||
id: 'status_code--float64----true',
|
id: 'response_status_code--string----true',
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
value: statusCode,
|
value: statusCode,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user