diff --git a/pkg/query-service/constants/constants.go b/pkg/query-service/constants/constants.go index b77d8dd7bf..a730c1ee2f 100644 --- a/pkg/query-service/constants/constants.go +++ b/pkg/query-service/constants/constants.go @@ -104,6 +104,7 @@ const ( UINT32 = "UInt32" LOWCARDINALITY_STRING = "LowCardinality(String)" INT32 = "Int32" + UINT8 = "Uint8" ) var StaticInterestingLogFields = []model.LogField{ @@ -129,7 +130,7 @@ var StaticInterestingLogFields = []model.LogField{ }, { Name: "severity_number", - DataType: INT32, + DataType: UINT8, Type: Static, }, } diff --git a/pkg/query-service/model/response.go b/pkg/query-service/model/response.go index ea4abe53d4..b6d4a056f9 100644 --- a/pkg/query-service/model/response.go +++ b/pkg/query-service/model/response.go @@ -427,7 +427,7 @@ type GetLogsResponse struct { SpanID string `json:"spanId" ch:"span_id"` TraceFlags uint32 `json:"traceFlags" ch:"trace_flags"` SeverityText string `json:"severityText" ch:"severity_text"` - SeverityNumber int32 `json:"severityNumber" ch:"severity_number"` + SeverityNumber uint8 `json:"severityNumber" ch:"severity_number"` Body string `json:"body" ch:"body"` Resources_string map[string]string `json:"resourcesString" ch:"resources_string"` Attributes_string map[string]string `json:"attributesString" ch:"attributes_string"`