Package zipkin2.elasticsearch
Class ElasticsearchStorage
java.lang.Object
zipkin2.Component
zipkin2.storage.StorageComponent
zipkin2.elasticsearch.ElasticsearchStorage
- All Implemented Interfaces:
Closeable,AutoCloseable
public abstract class ElasticsearchStorage
extends zipkin2.storage.StorageComponent
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interfaceThis defers creation of anWebClient. -
Method Summary
Modifier and TypeMethodDescriptionzipkin2.storage.AutocompleteTagszipkin2.CheckResultcheck()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()zipkin2.storage.ServiceAndSpanNameszipkin2.storage.SpanConsumerzipkin2.storage.SpanStoreabstract booleanfinal StringtoString()zipkin2.storage.Tracestraces()version()Returns the Elasticsearch / OpenSearch version of the connected cluster.
-
Method Details
-
newBuilder
public static ElasticsearchStorage.Builder newBuilder(ElasticsearchStorage.LazyHttpClient lazyHttpClient) The lazy http client supplier will be closed onclose() -
pipeline
-
flushOnWrites
public abstract boolean flushOnWrites() -
strictTraceId
public abstract boolean strictTraceId() -
indexNameFormatter
public abstract zipkin2.elasticsearch.internal.IndexNameFormatter indexNameFormatter() -
namesLookback
public abstract int namesLookback() -
spanStore
public zipkin2.storage.SpanStore spanStore()- Specified by:
spanStorein classzipkin2.storage.StorageComponent
-
traces
public zipkin2.storage.Traces traces()- Overrides:
tracesin classzipkin2.storage.StorageComponent
-
serviceAndSpanNames
public zipkin2.storage.ServiceAndSpanNames serviceAndSpanNames()- Overrides:
serviceAndSpanNamesin classzipkin2.storage.StorageComponent
-
autocompleteTags
public zipkin2.storage.AutocompleteTags autocompleteTags()- Overrides:
autocompleteTagsin classzipkin2.storage.StorageComponent
-
spanConsumer
public zipkin2.storage.SpanConsumer spanConsumer()- Specified by:
spanConsumerin classzipkin2.storage.StorageComponent
-
version
Returns the Elasticsearch / OpenSearch version of the connected cluster. Internal use only -
clear
This is an internal blocking call, only used in tests.- Throws:
IOException
-
isOverCapacity
Internal 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 classzipkin2.storage.StorageComponent
-
check
public zipkin2.CheckResult check()This is blocking so that we can determine if the cluster is healthy or not- Overrides:
checkin classzipkin2.Component
-
toString
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classzipkin2.Component
-