mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-14 01:25:53 +08:00
fix: if condition corrected in aggreagte attribute static fields (#2866)
This commit is contained in:
parent
1770e6a157
commit
a67d064418
@ -3879,7 +3879,7 @@ func (r *ClickHouseReader) GetLogAggregateAttributes(ctx context.Context, req *v
|
|||||||
}
|
}
|
||||||
// add other attributes
|
// add other attributes
|
||||||
for _, field := range constants.StaticFieldsLogsV3 {
|
for _, field := range constants.StaticFieldsLogsV3 {
|
||||||
if !stringAllowed && field.DataType == v3.AttributeKeyDataTypeString && (v3.AttributeKey{} == field) {
|
if (!stringAllowed && field.DataType == v3.AttributeKeyDataTypeString) || (v3.AttributeKey{} == field) {
|
||||||
continue
|
continue
|
||||||
} else if len(req.SearchText) == 0 || strings.Contains(field.Key, req.SearchText) {
|
} else if len(req.SearchText) == 0 || strings.Contains(field.Key, req.SearchText) {
|
||||||
response.AttributeKeys = append(response.AttributeKeys, field)
|
response.AttributeKeys = append(response.AttributeKeys, field)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user