[MM-15637] Add Trace config option to the Elasticsearch block (#11008)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
cee1e36859
Коммит
6aba17ff9d
@@ -571,6 +571,7 @@ func (a *App) trackConfig() {
|
|||||||
"live_indexing_batch_size": *cfg.ElasticsearchSettings.LiveIndexingBatchSize,
|
"live_indexing_batch_size": *cfg.ElasticsearchSettings.LiveIndexingBatchSize,
|
||||||
"bulk_indexing_time_window_seconds": *cfg.ElasticsearchSettings.BulkIndexingTimeWindowSeconds,
|
"bulk_indexing_time_window_seconds": *cfg.ElasticsearchSettings.BulkIndexingTimeWindowSeconds,
|
||||||
"request_timeout_seconds": *cfg.ElasticsearchSettings.RequestTimeoutSeconds,
|
"request_timeout_seconds": *cfg.ElasticsearchSettings.RequestTimeoutSeconds,
|
||||||
|
"trace": *cfg.ElasticsearchSettings.Trace,
|
||||||
})
|
})
|
||||||
|
|
||||||
a.SendDiagnostic(TRACK_CONFIG_PLUGIN, map[string]interface{}{
|
a.SendDiagnostic(TRACK_CONFIG_PLUGIN, map[string]interface{}{
|
||||||
|
|||||||
@@ -1991,6 +1991,7 @@ type ElasticsearchSettings struct {
|
|||||||
LiveIndexingBatchSize *int `restricted:"true"`
|
LiveIndexingBatchSize *int `restricted:"true"`
|
||||||
BulkIndexingTimeWindowSeconds *int `restricted:"true"`
|
BulkIndexingTimeWindowSeconds *int `restricted:"true"`
|
||||||
RequestTimeoutSeconds *int `restricted:"true"`
|
RequestTimeoutSeconds *int `restricted:"true"`
|
||||||
|
Trace *bool `restricted:"true"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *ElasticsearchSettings) SetDefaults() {
|
func (s *ElasticsearchSettings) SetDefaults() {
|
||||||
@@ -2069,6 +2070,10 @@ func (s *ElasticsearchSettings) SetDefaults() {
|
|||||||
if s.RequestTimeoutSeconds == nil {
|
if s.RequestTimeoutSeconds == nil {
|
||||||
s.RequestTimeoutSeconds = NewInt(ELASTICSEARCH_SETTINGS_DEFAULT_REQUEST_TIMEOUT_SECONDS)
|
s.RequestTimeoutSeconds = NewInt(ELASTICSEARCH_SETTINGS_DEFAULT_REQUEST_TIMEOUT_SECONDS)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if s.Trace == nil {
|
||||||
|
s.Trace = NewBool(false)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
type DataRetentionSettings struct {
|
type DataRetentionSettings struct {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user