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: add support for bool values in time series result (#2713)

Vishal Sharma357e422ecad9
diff --git a/pkg/query-service/app/clickhouseReader/reader.go b/pkg/query-service/app/clickhouseReader/reader.go
index 39f9c38992..9b9c1b8beb 100644
--- a/pkg/query-service/app/clickhouseReader/reader.go
+++ b/pkg/query-service/app/clickhouseReader/reader.go
@@ -4096,8 +4096,12 @@ func readRow(vars []interface{}, columnNames []string) ([]string, map[string]str
groupBy = append(groupBy, fmt.Sprintf("%v", reflect.ValueOf(v).Elem().Int()))
groupAttributes[colName] = fmt.Sprintf("%v", reflect.ValueOf(v).Elem().Int())
}
+ case *bool:
+ groupBy = append(groupBy, fmt.Sprintf("%v", *v))
+ groupAttributes[colName] = fmt.Sprintf("%v", *v)
+
default:
- zap.S().Errorf("unsupported var type %v found in metric builder query result for column %s", v, colName)
+ zap.S().Errorf("unsupported var type %v found in query builder query result for column %s", v, colName)
}
}
return groupBy, groupAttributes, point
@@ -4424,4 +4428,4 @@ func (r *ClickHouseReader) GetSpanAttributeKeys(ctx context.Context) (map[string
response[tagKey] = key
}
return response, nil
-}
\ No newline at end of file
+}