mirror of
https://github.com/nais/wonderwall.git
synced 2026-05-11 10:56:53 +00:00
feat(metrics): ignore empty hosts for redirect label
This commit is contained in:
@@ -161,6 +161,10 @@ func ObserveLogin(amrValue, redirect string) {
|
||||
u.RawQuery = ""
|
||||
u.RawFragment = ""
|
||||
redirect = u.String()
|
||||
|
||||
if u.Host == "" {
|
||||
redirect = ""
|
||||
}
|
||||
}
|
||||
|
||||
Logins.With(prometheus.Labels{
|
||||
|
||||
Reference in New Issue
Block a user