MM-48651: Log error while queuing telemetry (#21821)
We didn't use to handle the error returned from the Enqueue method. We fix that. Additionally, we add a verbosity flag that can allow us to look into verbose logs from the rudder client. This can help us to debug issues regarding telemetry not being sent. https://mattermost.atlassian.net/browse/MM-48651 ```release-note NONE ```
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
8c206c1fd4
Коммит
7606fd9725
@@ -369,7 +369,7 @@ func NewServer(options ...Option) (*Server, error) {
|
||||
})
|
||||
s.htmlTemplateWatcher = htmlTemplateWatcher
|
||||
|
||||
s.telemetryService = telemetry.New(New(ServerConnector(s.Channels())), s.Store(), s.platform.SearchEngine, s.Log())
|
||||
s.telemetryService = telemetry.New(New(ServerConnector(s.Channels())), s.Store(), s.platform.SearchEngine, s.Log(), *s.Config().LogSettings.VerboseDiagnostics)
|
||||
s.platform.SetTelemetryId(s.TelemetryId()) // TODO: move this into platform once telemetry service moved to platform.
|
||||
|
||||
emailService, err := email.NewService(email.ServiceConfig{
|
||||
|
||||
Ссылка в новой задаче
Block a user