PMM-9288 Remove DB name from user field.

This commit is contained in:
Jiří Čtvrtka
2025-02-18 15:01:34 +01:00
parent 33af9cc021
commit 6ca0b1d6fc

View File

@@ -96,7 +96,7 @@ func (s *Stats) Add(doc proto.SystemProfile) error {
QueryHash: doc.QueryHash, QueryHash: doc.QueryHash,
AppName: doc.AppName, AppName: doc.AppName,
Client: doc.Client, Client: doc.Client,
User: doc.User, User: strings.Split(doc.User, "@")[0],
Comments: doc.Comments, Comments: doc.Comments,
} }
s.setQueryInfoAndCounters(key, qiac) s.setQueryInfoAndCounters(key, qiac)