Package zipkin2.reporter.amqp
Class RabbitMQSender.Builder
java.lang.Object
zipkin2.reporter.amqp.RabbitMQSender.Builder
- Enclosing class:
- RabbitMQSender
public static final class RabbitMQSender.Builder extends Object
Configuration including defaults needed to send spans to a RabbitMQ queue.
-
Method Summary
Modifier and Type Method Description RabbitMQSender.Builderaddresses(String addresses)Comma-separated list of host:port pairs.RabbitMQSender.Builderaddresses(List<com.rabbitmq.client.Address> addresses)RabbitMQSenderbuild()RabbitMQSender.BuilderconnectionFactory(com.rabbitmq.client.ConnectionFactory connectionFactory)RabbitMQSender.BuilderconnectionTimeout(int connectionTimeout)Connection TCP establishment timeout in milliseconds.RabbitMQSender.Builderencoding(zipkin2.codec.Encoding encoding)Use this to change the encoding used in messages.RabbitMQSender.BuildermessageMaxBytes(int messageMaxBytes)Maximum size of a message.RabbitMQSender.Builderpassword(String password)The password to use when connecting to the broker.RabbitMQSender.Builderqueue(String queue)Queue zipkin spans will be send to.RabbitMQSender.Builderusername(String username)The AMQP user name to use when connecting to the broker.RabbitMQSender.BuildervirtualHost(String virtualHost)The virtual host to use when connecting to the broker.
-
Method Details
-
connectionFactory
public RabbitMQSender.Builder connectionFactory(com.rabbitmq.client.ConnectionFactory connectionFactory) -
addresses
-
addresses
Comma-separated list of host:port pairs. ex "192.168.99.100:5672" No Default. -
queue
Queue zipkin spans will be send to. Defaults to "zipkin" -
encoding
Use this to change the encoding used in messages. Default is Encoding.JSONNote: If ultimately sending to Zipkin, version 2.8+ is required to process protobuf.
-
connectionTimeout
Connection TCP establishment timeout in milliseconds. Defaults to 60 seconds -
virtualHost
The virtual host to use when connecting to the broker. Defaults to "/" -
username
The AMQP user name to use when connecting to the broker. Defaults to "guest" -
password
The password to use when connecting to the broker. Defaults to "guest" -
messageMaxBytes
Maximum size of a message. Default 500KB. -
build
-