@@ -267,7 +267,7 @@ const (
267267)
268268
269269var (
270- defaultEnableTelemetry = true
270+ defaultEnableTelemetry = false
271271 defaultRuntimeServices = []string {}
272272 defaultLocationLabels = []string {}
273273 // DefaultStoreLimit is the default store limit of add peer and remove peer.
@@ -408,10 +408,6 @@ func (c *Config) Parse(arguments []string) error {
408408 msg := fmt .Sprintf ("disable-raft-learner in %s is deprecated" , c .configFile )
409409 c .WarningMsgs = append (c .WarningMsgs , msg )
410410 }
411- if meta .IsDefined ("dashboard" , "disable-telemetry" ) {
412- msg := fmt .Sprintf ("disable-telemetry in %s is deprecated, use enable-telemetry instead" , c .configFile )
413- c .WarningMsgs = append (c .WarningMsgs , msg )
414- }
415411 }
416412
417413 // Parse again to replace with command line options.
@@ -1329,8 +1325,6 @@ type DashboardConfig struct {
13291325 InternalProxy bool `toml:"internal-proxy" json:"internal-proxy"`
13301326 EnableTelemetry bool `toml:"enable-telemetry" json:"enable-telemetry"`
13311327 EnableExperimental bool `toml:"enable-experimental" json:"enable-experimental"`
1332- // WARN: DisableTelemetry is deprecated.
1333- DisableTelemetry bool `toml:"disable-telemetry" json:"disable-telemetry,omitempty"`
13341328}
13351329
13361330// ToTiDBTLSConfig generates tls config for connecting to TiDB, used by tidb-dashboard.
@@ -1354,7 +1348,6 @@ func (c *DashboardConfig) adjust(meta *configMetaData) {
13541348 if ! meta .IsDefined ("enable-telemetry" ) {
13551349 c .EnableTelemetry = defaultEnableTelemetry
13561350 }
1357- c .EnableTelemetry = c .EnableTelemetry && ! c .DisableTelemetry
13581351}
13591352
13601353// ReplicationModeConfig is the configuration for the replication policy.
0 commit comments