Package zipkin2.collector.rabbitmq
Class RabbitMQCollector.Builder
java.lang.Object
zipkin2.collector.CollectorComponent.Builder
zipkin2.collector.rabbitmq.RabbitMQCollector.Builder
- Enclosing class:
- RabbitMQCollector
public static final class RabbitMQCollector.Builder extends CollectorComponent.Builder
Configuration including defaults needed to consume spans from a RabbitMQ queue.
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description RabbitMQCollector.Builder
addresses(List<String> addresses)
RabbitMQCollector
build()
RabbitMQCollector.Builder
concurrency(int concurrency)
RabbitMQCollector.Builder
connectionFactory(com.rabbitmq.client.ConnectionFactory connectionFactory)
RabbitMQCollector.Builder
metrics(CollectorMetrics metrics)
RabbitMQCollector.Builder
queue(String queue)
Queue zipkin spans will be consumed from.RabbitMQCollector.Builder
sampler(CollectorSampler sampler)
RabbitMQCollector.Builder
storage(StorageComponent storage)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
storage
- Specified by:
storage
in classCollectorComponent.Builder
-
sampler
- Specified by:
sampler
in classCollectorComponent.Builder
-
metrics
- Specified by:
metrics
in classCollectorComponent.Builder
-
addresses
-
concurrency
-
connectionFactory
public RabbitMQCollector.Builder connectionFactory(com.rabbitmq.client.ConnectionFactory connectionFactory) -
queue
Queue zipkin spans will be consumed from. Defaults to "zipkin-spans". -
build
- Specified by:
build
in classCollectorComponent.Builder
-