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.
TypeScript apmapplication-monitoringdistributed-tracinggogood-first-issuejaegerloglogsmetricsmonitoringnextjsobservabilityopen-sourceopentelemetryprometheusreactreactjsself-hostedtracingtypescript
fix: add support for count aggregate attribute (#2584)
Vishal Sharma60b78e94d84b
diff --git a/pkg/query-service/app/clickhouseReader/reader.go b/pkg/query-service/app/clickhouseReader/reader.goindex 1b0b771139..0dd0e1e77a 100644--- a/pkg/query-service/app/clickhouseReader/reader.go+++ b/pkg/query-service/app/clickhouseReader/reader.go@@ -3806,7 +3806,9 @@ func (r *ClickHouseReader) GetLogAggregateAttributes(ctx context.Context, req *vwhere := ""switch req.Operator {- case v3.AggregateOperatorCountDistinct:+ case+ v3.AggregateOperatorCountDistinct,+ v3.AggregateOpeatorCount:where = "tagKey ILIKE $1"casev3.AggregateOperatorRateSum,@@ -3829,7 +3831,6 @@ func (r *ClickHouseReader) GetLogAggregateAttributes(ctx context.Context, req *vv3.AggregateOperatorMax:where = "tagKey ILIKE $1 AND (tagDataType='int64' or tagDataType='float64')"case- v3.AggregateOpeatorCount,v3.AggregateOperatorNoOp:return &v3.AggregateAttributeResponse{}, nildefault:@@ -4228,7 +4229,9 @@ func (r *ClickHouseReader) GetTraceAggregateAttributes(ctx context.Context, reqvar response v3.AggregateAttributeResponsewhere := ""switch req.Operator {- case v3.AggregateOperatorCountDistinct:+ case+ v3.AggregateOperatorCountDistinct,+ v3.AggregateOpeatorCount:where = "tagKey ILIKE $1"casev3.AggregateOperatorRateSum,@@ -4251,7 +4254,6 @@ func (r *ClickHouseReader) GetTraceAggregateAttributes(ctx context.Context, reqv3.AggregateOperatorMax:where = "tagKey ILIKE $1 AND dataType='float64'"case- v3.AggregateOpeatorCount,v3.AggregateOperatorNoOp:return &v3.AggregateAttributeResponse{}, nildefault: