Package zipkin2.storage.cassandra
Class CassandraStorage
- java.lang.Object
-
- zipkin2.Component
-
- zipkin2.storage.StorageComponent
-
- zipkin2.storage.cassandra.CassandraStorage
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public abstract class CassandraStorage extends StorageComponent
CQL3 implementation of zipkin storage.Queries are logged to the category "com.datastax.driver.core.QueryLogger" when debug or trace is enabled via SLF4J. Trace level includes bound values.
Schema is installed by default from "/zipkin2-schema.cql"
When
StorageComponent.Builder.strictTraceId(boolean)is disabled, span and index data are uniformly written with 64-bit trace ID length. When retrieving data, an extra "trace_id_high" field clarifies if a 128-bit trace ID was sent.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCassandraStorage.Builderstatic interfaceCassandraStorage.SessionFactory
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AutocompleteTagsautocompleteTags()Memoized in order to avoid re-preparing statementsCheckResultcheck()voidclose()booleanisOverCapacity(Throwable e)static CassandraStorage.BuildernewBuilder()ServiceAndSpanNamesserviceAndSpanNames()SpanConsumerspanConsumer()Memoized in order to avoid re-preparing statementsSpanStorespanStore()Memoized in order to avoid re-preparing statementsStringtoString()Tracestraces()
-
-
-
Method Detail
-
newBuilder
public static CassandraStorage.Builder newBuilder()
-
spanStore
@Memoized public SpanStore spanStore()
Memoized in order to avoid re-preparing statements- Specified by:
spanStorein classStorageComponent
-
traces
public Traces traces()
- Overrides:
tracesin classStorageComponent
-
serviceAndSpanNames
public ServiceAndSpanNames serviceAndSpanNames()
- Overrides:
serviceAndSpanNamesin classStorageComponent
-
autocompleteTags
@Memoized public AutocompleteTags autocompleteTags()
Memoized in order to avoid re-preparing statements- Overrides:
autocompleteTagsin classStorageComponent
-
spanConsumer
@Memoized public SpanConsumer spanConsumer()
Memoized in order to avoid re-preparing statements- Specified by:
spanConsumerin classStorageComponent
-
check
public CheckResult check()
-
isOverCapacity
public boolean isOverCapacity(Throwable e)
- Overrides:
isOverCapacityin classStorageComponent
-
-