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: do not add redundant [] for array (#3484)
Srikanth Chekuri921fca5e6776
diff --git a/pkg/query-service/app/clickhouseReader/reader.go b/pkg/query-service/app/clickhouseReader/reader.goindex 8f3d4cf424..ac011720aa 100644--- a/pkg/query-service/app/clickhouseReader/reader.go+++ b/pkg/query-service/app/clickhouseReader/reader.go@@ -798,14 +798,14 @@ func (r *ClickHouseReader) GetServices(ctx context.Context, queryParams *model.Gavg(durationNano) as avgDuration,count(*) as numCallsFROM %s.%s- WHERE serviceName = @serviceName AND name In [@names] AND timestamp>= @start AND timestamp<= @end`,+ WHERE serviceName = @serviceName AND name In @names AND timestamp>= @start AND timestamp<= @end`,r.TraceDB, r.indexTable,)errorQuery := fmt.Sprintf(`SELECTcount(*) as numErrorsFROM %s.%s- WHERE serviceName = @serviceName AND name In [@names] AND timestamp>= @start AND timestamp<= @end AND statusCode=2`,+ WHERE serviceName = @serviceName AND name In @names AND timestamp>= @start AND timestamp<= @end AND statusCode=2`,r.TraceDB, r.indexTable,)@@ -893,7 +893,7 @@ func (r *ClickHouseReader) GetServiceOverview(ctx context.Context, queryParams *quantile(0.50)(durationNano) as p50,count(*) as numCallsFROM %s.%s- WHERE serviceName = @serviceName AND name In [@names] AND timestamp>= @start AND timestamp<= @end`,+ WHERE serviceName = @serviceName AND name In @names AND timestamp>= @start AND timestamp<= @end`,r.TraceDB, r.indexTable,)args := []interface{}{}@@ -924,7 +924,7 @@ func (r *ClickHouseReader) GetServiceOverview(ctx context.Context, queryParams *toStartOfInterval(timestamp, INTERVAL @interval minute) as time,count(*) as numErrorsFROM %s.%s- WHERE serviceName = @serviceName AND name In [@names] AND timestamp>= @start AND timestamp<= @end AND statusCode=2`,+ WHERE serviceName = @serviceName AND name In @names AND timestamp>= @start AND timestamp<= @end AND statusCode=2`,r.TraceDB, r.indexTable,)args = []interface{}{}