Package zipkin2.storage.cassandra.v1
Class CassandraStorage
java.lang.Object
zipkin2.Component
zipkin2.storage.StorageComponent
zipkin2.storage.cassandra.v1.CassandraStorage
- All Implemented Interfaces:
Closeable
,AutoCloseable
public 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.
Redundant requests to store service or span names are ignored for an hour to reduce load. This
feature is implemented by DeduplicatingVoidCallFactory
.
Schema is installed by default from "/cassandra-schema.cql"
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CassandraStorage.Builder
-
Method Summary
Modifier and Type Method Description AutocompleteTags
autocompleteTags()
CheckResult
check()
void
close()
boolean
isOverCapacity(Throwable e)
static CassandraStorage.Builder
newBuilder()
ServiceAndSpanNames
serviceAndSpanNames()
SpanConsumer
spanConsumer()
Memoized in order to avoid re-preparing statementsSpanStore
spanStore()
Memoized in order to avoid re-preparing statementsString
toString()
Traces
traces()
-
Method Details
-
newBuilder
-
spanStore
Memoized in order to avoid re-preparing statements- Specified by:
spanStore
in classStorageComponent
-
traces
- Overrides:
traces
in classStorageComponent
-
serviceAndSpanNames
- Overrides:
serviceAndSpanNames
in classStorageComponent
-
autocompleteTags
- Overrides:
autocompleteTags
in classStorageComponent
-
spanConsumer
Memoized in order to avoid re-preparing statements- Specified by:
spanConsumer
in classStorageComponent
-
isOverCapacity
- Overrides:
isOverCapacity
in classStorageComponent
-
toString
-
check
-
close
public void close()
-