[MM-57010] Include client type in websocket connections metric (#26763)

* Include client type in websocket connections metric

* Unexport field
Этот коммит содержится в:
Claudio Costa
2024-04-16 10:49:49 -06:00
коммит произвёл GitHub
родитель effb99301e
Коммит 4b508eed46
8 изменённых файлов: 51 добавлений и 11 удалений

Просмотреть файл

@@ -883,7 +883,7 @@ func TestCheckCSRFToken(t *testing.T) {
})
}
func TestOriginClient(t *testing.T) {
func TestGetOriginClient(t *testing.T) {
testCases := []struct {
name string
userAgent string
@@ -945,7 +945,7 @@ func TestOriginClient(t *testing.T) {
}
// Compute origin client
actualClient := originClient(req)
actualClient := GetOriginClient(req)
require.Equal(t, tc.expectedClient, actualClient)
}