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: trace column attributes (#3000)
Vishal Sharma709bfda0ccf7
diff --git a/pkg/query-service/app/clickhouseReader/reader.go b/pkg/query-service/app/clickhouseReader/reader.goindex 7237046e7d..cf7ed5503c 100644--- a/pkg/query-service/app/clickhouseReader/reader.go+++ b/pkg/query-service/app/clickhouseReader/reader.go@@ -4299,6 +4299,8 @@ func (r *ClickHouseReader) GetTraceAggregateAttributes(ctx context.Context, reqif err := rows.Scan(&tagKey, &tagType, &dataType, &isColumn); err != nil {return nil, fmt.Errorf("error while scanning rows: %s", err.Error())}+ // TODO: Remove this once the column name are updated in the table+ tagKey = tempHandleFixedColumns(tagKey)key := v3.AttributeKey{Key: tagKey,DataType: v3.AttributeKeyDataType(dataType),@@ -4338,6 +4340,8 @@ func (r *ClickHouseReader) GetTraceAttributeKeys(ctx context.Context, req *v3.Fiif err := rows.Scan(&tagKey, &tagType, &dataType, &isColumn); err != nil {return nil, fmt.Errorf("error while scanning rows: %s", err.Error())}+ // TODO: Remove this once the column name are updated in the table+ tagKey = tempHandleFixedColumns(tagKey)key := v3.AttributeKey{Key: tagKey,DataType: v3.AttributeKeyDataType(dataType),@@ -4349,6 +4353,19 @@ func (r *ClickHouseReader) GetTraceAttributeKeys(ctx context.Context, req *v3.Fireturn &response, nil}+// tempHandleFixedColumns is a temporary function to handle the fixed columns whose name has been changed in AttributeKeys Table+func tempHandleFixedColumns(tagKey string) string {+ switch {+ case tagKey == "traceId":+ tagKey = "traceID"+ case tagKey == "spanId":+ tagKey = "spanID"+ case tagKey == "parentSpanId":+ tagKey = "parentSpanID"+ }+ return tagKey+}+func (r *ClickHouseReader) GetTraceAttributeValues(ctx context.Context, req *v3.FilterAttributeValueRequest) (*v3.FilterAttributeValueResponse, error) {var query string