Skip to content

Commit

Permalink
severity_number type changed to int8
Browse files Browse the repository at this point in the history
  • Loading branch information
nityanandagohain committed Aug 3, 2022
1 parent 594bfc2 commit 9dcf913
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pkg/query-service/constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ const (
UINT32 = "UInt32"
LOWCARDINALITY_STRING = "LowCardinality(String)"
INT32 = "Int32"
UINT8 = "Uint8"
)

var StaticInterestingLogFields = []model.LogField{
Expand All @@ -129,7 +130,7 @@ var StaticInterestingLogFields = []model.LogField{
},
{
Name: "severity_number",
DataType: INT32,
DataType: UINT8,
Type: Static,
},
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/query-service/model/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit 9dcf913

Please sign in to comment.