MM-58823 Remove feature flag from client metrics (#27397)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
5defc75e46
Коммит
cca0db7e32
@@ -188,7 +188,7 @@ func GenerateClientConfig(c *model.Config, telemetryID string, license *model.Li
|
|||||||
|
|
||||||
if *license.Features.Cluster {
|
if *license.Features.Cluster {
|
||||||
props["EnableMetrics"] = strconv.FormatBool(*c.MetricsSettings.Enable)
|
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)
|
props["EnableNotificationMetrics"] = strconv.FormatBool(c.FeatureFlags.NotificationMonitoring && *c.MetricsSettings.EnableNotificationMetrics)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -57,8 +57,6 @@ type FeatureFlags struct {
|
|||||||
NotificationMonitoring bool
|
NotificationMonitoring bool
|
||||||
|
|
||||||
ExperimentalAuditSettingsSystemConsoleUI bool
|
ExperimentalAuditSettingsSystemConsoleUI bool
|
||||||
|
|
||||||
ClientMetrics bool
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *FeatureFlags) SetDefaults() {
|
func (f *FeatureFlags) SetDefaults() {
|
||||||
@@ -83,7 +81,6 @@ func (f *FeatureFlags) SetDefaults() {
|
|||||||
f.WebSocketEventScope = false
|
f.WebSocketEventScope = false
|
||||||
f.NotificationMonitoring = true
|
f.NotificationMonitoring = true
|
||||||
f.ExperimentalAuditSettingsSystemConsoleUI = false
|
f.ExperimentalAuditSettingsSystemConsoleUI = false
|
||||||
f.ClientMetrics = false
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ToMap returns the feature flags as a map[string]string
|
// ToMap returns the feature flags as a map[string]string
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user