Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

fix: autcomplete top level keys (#3104)

Nityananda Gohaina6e6c171c352
diff --git a/pkg/query-service/app/clickhouseReader/reader.go b/pkg/query-service/app/clickhouseReader/reader.go
index 7185581ab7..f30db29af6 100644
--- a/pkg/query-service/app/clickhouseReader/reader.go
+++ b/pkg/query-service/app/clickhouseReader/reader.go
@@ -3958,7 +3958,10 @@ func (r *ClickHouseReader) GetLogAttributeValues(ctx context.Context, req *v3.Fi
// if dataType or tagType is not present return empty response
if len(req.FilterAttributeKeyDataType) == 0 || len(req.TagType) == 0 || req.FilterAttributeKey == "body" {
- return &v3.FilterAttributeValueResponse{}, nil
+ // also check if it is not a top level key
+ if _, ok := constants.StaticFieldsLogsV3[req.FilterAttributeKey]; !ok {
+ return &v3.FilterAttributeValueResponse{}, nil
+ }
}
// if data type is bool, return true and false