Skip to content

Commit 6ca0b1d

Browse files
committed
PMM-9288 Remove DB name from user field.
1 parent 33af9cc commit 6ca0b1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/go/mongolib/stats/stats.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ func (s *Stats) Add(doc proto.SystemProfile) error {
9696
QueryHash: doc.QueryHash,
9797
AppName: doc.AppName,
9898
Client: doc.Client,
99-
User: doc.User,
99+
User: strings.Split(doc.User, "@")[0],
100100
Comments: doc.Comments,
101101
}
102102
s.setQueryInfoAndCounters(key, qiac)

0 commit comments

Comments
 (0)