MM-58823 Remove feature flag from client metrics (#27397)

Этот коммит содержится в:
Harrison Healey
2024-06-19 10:45:23 -04:00
коммит произвёл GitHub
родитель 5defc75e46
Коммит cca0db7e32
2 изменённых файлов: 1 добавлений и 4 удалений

Просмотреть файл

@@ -188,7 +188,7 @@ func GenerateClientConfig(c *model.Config, telemetryID string, license *model.Li
if *license.Features.Cluster {
props["EnableMetrics"] = strconv.FormatBool(*c.MetricsSettings.Enable)
props["EnableClientMetrics"] = strconv.FormatBool(c.FeatureFlags.ClientMetrics && *c.MetricsSettings.EnableClientMetrics)
props["EnableClientMetrics"] = strconv.FormatBool(*c.MetricsSettings.Enable && *c.MetricsSettings.EnableClientMetrics)
props["EnableNotificationMetrics"] = strconv.FormatBool(c.FeatureFlags.NotificationMonitoring && *c.MetricsSettings.EnableNotificationMetrics)
}

Просмотреть файл

@@ -57,8 +57,6 @@ type FeatureFlags struct {
NotificationMonitoring bool
ExperimentalAuditSettingsSystemConsoleUI bool
ClientMetrics bool
}
func (f *FeatureFlags) SetDefaults() {
@@ -83,7 +81,6 @@ func (f *FeatureFlags) SetDefaults() {
f.WebSocketEventScope = false
f.NotificationMonitoring = true
f.ExperimentalAuditSettingsSystemConsoleUI = false
f.ClientMetrics = false
}
// ToMap returns the feature flags as a map[string]string