fix(monitor): unknown column returned when group by name tag (#21870)

This commit is contained in:
Zexi Li
2024-12-20 18:00:42 +08:00
committed by GitHub
parent cee4111854
commit 8818e68e75
+1 -1
View File
@@ -110,7 +110,7 @@ func FormatRawName(idx int, name string, groupByTags []string, tags map[string]s
for _, tagKey := range tagKeys.List() {
if tagV, ok := tags[tagKey]; ok {
gHint := genHint(tagKey, tagV)
if strings.Contains(tagKey, "name") {
if strings.Contains(tagKey, "name") && !sets.NewString(groupByTags...).Has(tagKey) {
hintNames.Insert(gHint)
} else {
hints.Insert(gHint)