Package zipkin2.elasticsearch
Class ElasticsearchStorage.Builder
java.lang.Object
zipkin2.storage.StorageComponent.Builder
zipkin2.elasticsearch.ElasticsearchStorage.Builder
- Enclosing class:
- ElasticsearchStorage
-
Method Summary
Modifier and TypeMethodDescriptionabstract ElasticsearchStorage.Builder
autocompleteCardinality
(int autocompleteCardinality) abstract ElasticsearchStorage.Builder
autocompleteKeys
(List<String> autocompleteKeys) abstract ElasticsearchStorage.Builder
autocompleteTtl
(int autocompleteTtl) abstract ElasticsearchStorage
build()
dateSeparator
(char dateSeparator) The date separator to use when generating daily index names.abstract ElasticsearchStorage.Builder
ensureTemplates
(boolean ensureTemplates) False disables automatic index template installation.abstract ElasticsearchStorage.Builder
flushOnWrites
(boolean flushOnWrites) Internal and visible only for testing.The index prefix to use when generating daily index names.abstract ElasticsearchStorage.Builder
indexReplicas
(int indexReplicas) The number of replica copies of each shard in the index.abstract ElasticsearchStorage.Builder
indexShards
(int indexShards) The number of shards to split the index into.abstract ElasticsearchStorage.Builder
namesLookback
(int namesLookback) Only return span and service names where allSpan.timestamp()
are at or after (now - lookback) in milliseconds.abstract ElasticsearchStorage.Builder
Only valid when the destination is Elasticsearch 5.x.abstract ElasticsearchStorage.Builder
searchEnabled
(boolean searchEnabled) abstract ElasticsearchStorage.Builder
strictTraceId
(boolean strictTraceId) abstract ElasticsearchStorage.Builder
templatePriority
(Integer templatePriority) Only valid when the destination is Elasticsearch >= 7.8.
-
Method Details
-
pipeline
Only valid when the destination is Elasticsearch 5.x. Indicates the ingest pipeline used before spans are indexed. No default.See https://www.elastic.co/guide/en/elasticsearch/reference/master/pipeline.html
-
namesLookback
Only return span and service names where allSpan.timestamp()
are at or after (now - lookback) in milliseconds. Defaults to 1 day (86400000). -
flushOnWrites
Internal and visible only for testing.See https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-refresh.html
-
index
The index prefix to use when generating daily index names. Defaults to zipkin. -
dateSeparator
The date separator to use when generating daily index names. Defaults to '-'.By default, spans with a timestamp falling on 2016/03/19 end up in the index 'zipkin-span-2016-03-19'. When the date separator is '.', the index would be 'zipkin-span-2016.03.19'. If the date separator is 0, there is no delimiter. Ex the index would be 'zipkin-span-20160319'
-
indexShards
The number of shards to split the index into. Each shard and its replicas are assigned to a machine in the cluster. Increasing the number of shards and machines in the cluster will improve read and write performance. Number of shards cannot be changed for existing indices, but new daily indices will pick up changes to the setting. Defaults to 5.Corresponds to index.number_of_shards
-
indexReplicas
The number of replica copies of each shard in the index. Each shard and its replicas are assigned to a machine in the cluster. Increasing the number of replicas and machines in the cluster will improve read performance, but not write performance. Number of replicas can be changed for existing indices. Defaults to 1. It is highly discouraged to set this to 0 as it would mean a machine failure results in data loss.Corresponds to index.number_of_replicas
-
ensureTemplates
False disables automatic index template installation. -
templatePriority
Only valid when the destination is Elasticsearch >= 7.8. Indicates the index template priority in case of multiple matching templates. The template with the highest priority is used. Defaults to 0.See https://www.elastic.co/guide/en/elasticsearch/reference/7.8/_index_template_and_settings_priority.html
-
strictTraceId
- Specified by:
strictTraceId
in classStorageComponent.Builder
-
searchEnabled
- Specified by:
searchEnabled
in classStorageComponent.Builder
-
autocompleteKeys
- Overrides:
autocompleteKeys
in classStorageComponent.Builder
-
autocompleteTtl
- Overrides:
autocompleteTtl
in classStorageComponent.Builder
-
autocompleteCardinality
- Overrides:
autocompleteCardinality
in classStorageComponent.Builder
-
build
- Specified by:
build
in classStorageComponent.Builder
-