Adding guest accounts count telemetry (#14257)
* Adding guest accounts count telemetry * Adding missed methods to the opentracing an timer layer
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
819f57037b
Коммит
f6f025aeaa
@@ -123,6 +123,7 @@ func pluginVersion(pluginsAvailable []*model.BundleInfo, pluginId string) string
|
||||
|
||||
func (a *App) trackActivity() {
|
||||
var userCount int64
|
||||
var guestAccountsCount int64
|
||||
var botAccountsCount int64
|
||||
var inactiveUserCount int64
|
||||
var publicChannelCount int64
|
||||
@@ -155,6 +156,10 @@ func (a *App) trackActivity() {
|
||||
userCount = count
|
||||
}
|
||||
|
||||
if count, err := a.Srv().Store.User().AnalyticsGetGuestCount(); err == nil {
|
||||
guestAccountsCount = count
|
||||
}
|
||||
|
||||
if count, err := a.Srv().Store.User().Count(model.UserCountOptions{IncludeBotAccounts: true, ExcludeRegularUsers: true}); err == nil {
|
||||
botAccountsCount = count
|
||||
}
|
||||
@@ -225,6 +230,7 @@ func (a *App) trackActivity() {
|
||||
a.SendDiagnostic(TRACK_ACTIVITY, map[string]interface{}{
|
||||
"registered_users": userCount,
|
||||
"bot_accounts": botAccountsCount,
|
||||
"guest_accounts": guestAccountsCount,
|
||||
"active_users_daily": activeUsersDailyCount,
|
||||
"active_users_monthly": activeUsersMonthlyCount,
|
||||
"registered_deactivated_users": inactiveUserCount,
|
||||
|
||||
Ссылка в новой задаче
Block a user