Package zipkin2.elasticsearch
Class ElasticsearchStorage.Builder
java.lang.Object
zipkin2.storage.StorageComponent.Builder
zipkin2.elasticsearch.ElasticsearchStorage.Builder
- Enclosing class:
- ElasticsearchStorage
- 
Method SummaryModifier and TypeMethodDescriptionabstract ElasticsearchStorage.BuilderautocompleteCardinality(int autocompleteCardinality) abstract ElasticsearchStorage.BuilderautocompleteKeys(List<String> autocompleteKeys) abstract ElasticsearchStorage.BuilderautocompleteTtl(int autocompleteTtl) abstract ElasticsearchStoragebuild()dateSeparator(char dateSeparator) The date separator to use when generating daily index names.abstract ElasticsearchStorage.BuilderensureTemplates(boolean ensureTemplates) False disables automatic index template installation.abstract ElasticsearchStorage.BuilderflushOnWrites(boolean flushOnWrites) Internal and visible only for testing.The index prefix to use when generating daily index names.abstract ElasticsearchStorage.BuilderindexReplicas(int indexReplicas) The number of replica copies of each shard in the index.abstract ElasticsearchStorage.BuilderindexShards(int indexShards) The number of shards to split the index into.abstract ElasticsearchStorage.BuildernamesLookback(int namesLookback) Only return span and service names where allSpan.timestamp()are at or after (now - lookback) in milliseconds.abstract ElasticsearchStorage.BuilderOnly valid when the destination is Elasticsearch 5.x.abstract ElasticsearchStorage.BuildersearchEnabled(boolean searchEnabled) abstract ElasticsearchStorage.BuilderstrictTraceId(boolean strictTraceId) abstract ElasticsearchStorage.BuildertemplatePriority(Integer templatePriority) Only valid when the destination is Elasticsearch >= 7.8.
- 
Method Details- 
pipelineOnly 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 
- 
namesLookbackOnly return span and service names where allSpan.timestamp()are at or after (now - lookback) in milliseconds. Defaults to 1 day (86400000).
- 
flushOnWritesInternal and visible only for testing.See https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-refresh.html 
- 
indexThe index prefix to use when generating daily index names. Defaults to zipkin.
- 
dateSeparatorThe 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' 
- 
indexShardsThe 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 
- 
indexReplicasThe 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 
- 
ensureTemplatesFalse disables automatic index template installation.
- 
templatePriorityOnly 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:
- strictTraceIdin class- StorageComponent.Builder
 
- 
searchEnabled- Specified by:
- searchEnabledin class- StorageComponent.Builder
 
- 
autocompleteKeys- Overrides:
- autocompleteKeysin class- StorageComponent.Builder
 
- 
autocompleteTtl- Overrides:
- autocompleteTtlin class- StorageComponent.Builder
 
- 
autocompleteCardinality- Overrides:
- autocompleteCardinalityin class- StorageComponent.Builder
 
- 
build- Specified by:
- buildin class- StorageComponent.Builder
 
 
-