Moving diagnostics into a service (#14832)
* Moving diagnostics into a service * Fixing golint checks * Fixing tests * Renaming from diagnostics to telemetry * Adding missing files * Initializing telemetry earlier in the server startup * Fixing tests * Adding a log for the telemetryID initialization error * Addressing PR review comments * Fixing merge problem * Removing some extra Diagnostics mentions * Making tests pass
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
f0eb67fa0d
Коммит
44079785eb
@@ -133,6 +133,13 @@ func (api *apiTimerLayer) GetDiagnosticId() string {
|
||||
return _returnsA
|
||||
}
|
||||
|
||||
func (api *apiTimerLayer) GetTelemetryId() string {
|
||||
startTime := timePkg.Now()
|
||||
_returnsA := api.apiImpl.GetTelemetryId()
|
||||
api.recordTime(startTime, "GetTelemetryId", true)
|
||||
return _returnsA
|
||||
}
|
||||
|
||||
func (api *apiTimerLayer) CreateUser(user *model.User) (*model.User, *model.AppError) {
|
||||
startTime := timePkg.Now()
|
||||
_returnsA, _returnsB := api.apiImpl.CreateUser(user)
|
||||
|
||||
Ссылка в новой задаче
Block a user