Package zipkin2.elasticsearch
Class ElasticsearchStorage
java.lang.Object
zipkin2.Component
zipkin2.storage.StorageComponent
zipkin2.elasticsearch.ElasticsearchStorage
- All Implemented Interfaces:
- Closeable,- AutoCloseable
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic interfaceThis defers creation of anWebClient.
- 
Method SummaryModifier and TypeMethodDescriptioncheck()This is blocking so that we can determine if the cluster is healthy or notvoidclear()This is an internal blocking call, only used in tests.voidclose()abstract booleanabstract zipkin2.elasticsearch.internal.IndexNameFormatterbooleanInternal code and api responses coerce toRejectedExecutionExceptionwhen work is rejected.abstract intstatic ElasticsearchStorage.BuildernewBuilder(ElasticsearchStorage.LazyHttpClient lazyHttpClient) The lazy http client supplier will be closed onclose()abstract Stringpipeline()abstract booleanfinal StringtoString()traces()version()Returns the Elasticsearch / OpenSearch version of the connected cluster.
- 
Method Details- 
newBuilderpublic static ElasticsearchStorage.Builder newBuilder(ElasticsearchStorage.LazyHttpClient lazyHttpClient) The lazy http client supplier will be closed onclose()
- 
pipeline
- 
flushOnWritespublic abstract boolean flushOnWrites()
- 
strictTraceIdpublic abstract boolean strictTraceId()
- 
indexNameFormatterpublic abstract zipkin2.elasticsearch.internal.IndexNameFormatter indexNameFormatter()
- 
namesLookbackpublic abstract int namesLookback()
- 
spanStore- Specified by:
- spanStorein class- StorageComponent
 
- 
traces- Overrides:
- tracesin class- StorageComponent
 
- 
serviceAndSpanNames- Overrides:
- serviceAndSpanNamesin class- StorageComponent
 
- 
autocompleteTags- Overrides:
- autocompleteTagsin class- StorageComponent
 
- 
spanConsumer- Specified by:
- spanConsumerin class- StorageComponent
 
- 
versionReturns the Elasticsearch / OpenSearch version of the connected cluster. Internal use only
- 
clearThis is an internal blocking call, only used in tests.- Throws:
- IOException
 
- 
isOverCapacityInternal code and api responses coerce toRejectedExecutionExceptionwhen work is rejected. We also classifyResponseTimeoutExceptionas a capacity related exception even though capacity is not the only reason (timeout could also result from a misconfiguration or a network problem).- Overrides:
- isOverCapacityin class- StorageComponent
 
- 
checkThis is blocking so that we can determine if the cluster is healthy or not
- 
toString
- 
closepublic void close()
 
-