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 limits to suggestion query (#5984)
Nityananda Gohainb78ade2cf29e
diff --git a/pkg/query-service/app/clickhouseReader/reader.go b/pkg/query-service/app/clickhouseReader/reader.goindex 5f34a2f9dc..43537f01f3 100644--- a/pkg/query-service/app/clickhouseReader/reader.go+++ b/pkg/query-service/app/clickhouseReader/reader.go@@ -4364,6 +4364,9 @@ func (r *ClickHouseReader) getValuesForLogAttributes() ([][]any, *model.ApiError) {// query top `limit` distinct values seen for `tagKey`s of interest// ordered by timestamp when the value was seen++ // we added the settings max_rows_to_group_by=100, group_by_overflow_mode = 'break'+ // to avoid query from taking up all the resources when value is high cardinality.query := fmt.Sprintf(`select tagKey, stringTagValue, int64TagValue, float64TagValue@@ -4383,7 +4386,7 @@ func (r *ClickHouseReader) getValuesForLogAttributes(max(timestamp) as tsfrom %s.%swhere tagKey in $1- group by (tagKey, stringTagValue, int64TagValue, float64TagValue)+ group by (tagKey, stringTagValue, int64TagValue, float64TagValue) SETTINGS max_rows_to_group_by = 100, group_by_overflow_mode = 'break', max_threads=4))where rank <= %d