Add platform information for push notification metrics (#27460)
* Add platform information for push notification metrics * Address feedback * Add the client platform returned by the devices to the normalize function * Add "no platform" platform label to distinguish from unknown
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
6bbf7bbb9f
Коммит
e5a3dd7fea
@@ -139,7 +139,7 @@ func incrementWebsocketCounter(wc *platform.WebConn) {
|
||||
return
|
||||
}
|
||||
|
||||
wc.Platform.Metrics().IncrementNotificationCounter(model.NotificationTypeWebsocket)
|
||||
wc.Platform.Metrics().IncrementNotificationCounter(model.NotificationTypeWebsocket, model.NotificationNoPlatform)
|
||||
}
|
||||
|
||||
// getTypedArg returns a correctly typed hook argument with the given key, reinterpreting the type using JSON encoding
|
||||
|
||||
Ссылка в новой задаче
Block a user