Class 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 Detail

      • connectionFactory

        public RabbitMQSender.Builder connectionFactory​(com.rabbitmq.client.ConnectionFactory connectionFactory)
      • addresses

        public RabbitMQSender.Builder addresses​(String addresses)
        Comma-separated list of host:port pairs. ex "192.168.99.100:5672" No Default.
      • encoding

        public RabbitMQSender.Builder encoding​(zipkin2.codec.Encoding encoding)
        Use this to change the encoding used in messages. Default is Encoding.JSON

        Note: If ultimately sending to Zipkin, version 2.8+ is required to process protobuf.

      • connectionTimeout

        public RabbitMQSender.Builder connectionTimeout​(int connectionTimeout)
        Connection TCP establishment timeout in milliseconds. Defaults to 60 seconds
      • virtualHost

        public RabbitMQSender.Builder virtualHost​(String virtualHost)
        The virtual host to use when connecting to the broker. Defaults to "/"
      • username

        public RabbitMQSender.Builder username​(String username)
        The AMQP user name to use when connecting to the broker. Defaults to "guest"
      • password

        public RabbitMQSender.Builder password​(String password)
        The password to use when connecting to the broker. Defaults to "guest"
      • messageMaxBytes

        public RabbitMQSender.Builder messageMaxBytes​(int messageMaxBytes)
        Maximum size of a message. Default 500KB.