public JDBCSpanStore(DataSource datasource, Settings settings, @Nullable ExecuteListenerProvider listenerProvider) { this.datasource = checkNotNull(datasource, "datasource"); this.settings = checkNotNull(settings, "settings"); this.listenerProvider = listenerProvider; }
/** * Name of the datacenter that will be considered "local" for latency load balancing. When * unset, load-balancing is round-robin. */ public Builder localDc(@Nullable String localDc) { this.localDc = localDc; return this; }
/** * {@link CollectorSampler#isSampled(Span) samples spans} to reduce load on the storage system. * Defaults to always sample. */ public Builder sampler(CollectorSampler sampler) { this.sampler = checkNotNull(sampler, "sampler"); return this; }
KafkaStreamProcessor(KafkaStream<byte[], byte[]> stream, Lazy<AsyncSpanConsumer> consumer, CollectorMetrics metrics) { this.stream = stream; this.consumer = consumer; this.logger = new SpanConsumerLogger(KafkaStreamProcessor.class, metrics); }
DSLContexts(Settings settings, @Nullable ExecuteListenerProvider listenerProvider) { this.settings = checkNotNull(settings, "settings"); this.listenerProvider = listenerProvider; }
/** The zookeeper connect string, ex. 127.0.0.1:2181. No default */ public Builder zookeeper(String zookeeper) { this.zookeeper = checkNotNull(zookeeper, "zookeeper"); return this; }
/** Will throw an exception on startup if authentication fails. No default. */ public Builder password(@Nullable String password) { this.password = password; return this; }
ScribeSpanConsumer(String category, Lazy<AsyncSpanConsumer> consumer, CollectorMetrics metrics) { this.category = category; this.consumer = consumer; this.logger = new SpanConsumerLogger(ScribeSpanConsumer.class, metrics); }
DSLContexts(Settings settings, @Nullable ExecuteListenerProvider listenerProvider) { this.settings = checkNotNull(settings, "settings"); this.listenerProvider = listenerProvider; }
/** * The index prefix to use when generating daily index names. Defaults to zipkin. */ public Builder index(String index) { this.index = checkNotNull(index, "index"); return this; }
/** * Version of {@link zipkin.SpanStore#getDependencies} that returns {@link ListenableFuture}. */ ListenableFuture<List<DependencyLink>> getDependencies(long endTs, @Nullable Long lookback); }
DSLContexts(Settings settings, @Nullable ExecuteListenerProvider listenerProvider) { this.settings = checkNotNull(settings, "settings"); this.listenerProvider = listenerProvider; }
/** Keyspace to store span and index data. Defaults to "zipkin" */ public Builder keyspace(String keyspace) { this.keyspace = checkNotNull(keyspace, "keyspace"); return this; }
/** Comma separated list of host addresses part of Cassandra cluster. You can also specify a custom port with 'host:port'. Defaults to localhost on port 9042 **/ public Builder contactPoints(String contactPoints) { this.contactPoints = checkNotNull(contactPoints, "contactPoints"); return this; }
DependencyLinkV2SpanIterator(PeekingIterator<Record> delegate, @Nullable Long traceIdHi, long traceIdLo) { this.delegate = delegate; this.traceIdHi = traceIdHi; this.traceIdLo = traceIdLo; }
/** Category zipkin spans will be consumed from. Defaults to "zipkin" */ public Builder category(String category) { this.category = checkNotNull(category, "category"); return this; }
/** * {@link CollectorSampler#isSampled(Span) samples spans} to reduce load on the storage system. * Defaults to always sample. */ public Builder sampler(CollectorSampler sampler) { this.sampler = checkNotNull(sampler, "sampler"); return this; }
/** Override to control how sessions are created. */ public Builder sessionFactory(SessionFactory sessionFactory) { this.sessionFactory = checkNotNull(sessionFactory, "sessionFactory"); return this; }