[MM-59363] Shared channel event telemetry (#29024)
* shared channel event tracking * Update notification.go Co-authored-by: Miguel de la Cruz <miguel@mcrx.me> --------- Co-authored-by: Miguel de la Cruz <miguel@mcrx.me>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
373e21c5a1
Коммит
751d84bf13
@@ -2698,6 +2698,17 @@ func (a *App) SetActiveChannel(c request.CTX, userID string, channelID string) *
|
||||
},
|
||||
)
|
||||
}
|
||||
isShared, shErr := a.Srv().Store().SharedChannel().HasChannel(channelID)
|
||||
if shErr == nil && isShared {
|
||||
a.Srv().telemetryService.SendTelemetryForFeature(
|
||||
telemetry.TrackSharedChannelsFeature,
|
||||
"shared_channel_viewed",
|
||||
map[string]any{
|
||||
telemetry.TrackPropertyUser: userID,
|
||||
telemetry.TrackPropertyChannel: channelID,
|
||||
},
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
|
||||
Ссылка в новой задаче
Block a user