feat(metrics): ignore empty hosts for redirect label

This commit is contained in:
Trong Huu Nguyen
2023-04-28 07:58:58 +02:00
parent 28abcb3cf8
commit f8336fa74a

View File

@@ -161,6 +161,10 @@ func ObserveLogin(amrValue, redirect string) {
u.RawQuery = ""
u.RawFragment = ""
redirect = u.String()
if u.Host == "" {
redirect = ""
}
}
Logins.With(prometheus.Labels{