public final class RabbitMQSender extends Sender
The sender does not use RabbitMQ Publisher Confirms, so messages considered sent may not necessarily be received by consumers in case of RabbitMQ failure.
For thread safety, a channel is created for each thread that calls sendSpans(List).
| Modifier and Type | Class | Description |
|---|---|---|
static class |
RabbitMQSender.Builder |
Configuration including defaults needed to send spans to a RabbitMQ queue.
|
| Modifier and Type | Method | Description |
|---|---|---|
zipkin2.CheckResult |
check() |
Ensures there are no connection issues.
|
void |
close() |
|
static RabbitMQSender |
create(java.lang.String addresses) |
Creates a sender that sends
Encoding.JSON messages. |
zipkin2.codec.Encoding |
encoding() |
|
int |
messageMaxBytes() |
|
int |
messageSizeInBytes(int encodedSizeInBytes) |
|
int |
messageSizeInBytes(java.util.List<byte[]> encodedSpans) |
|
static RabbitMQSender.Builder |
newBuilder() |
|
zipkin2.Call<java.lang.Void> |
sendSpans(java.util.List<byte[]> encodedSpans) |
This sends all of the spans as a single message.
|
RabbitMQSender.Builder |
toBuilder() |
|
java.lang.String |
toString() |
public static RabbitMQSender create(java.lang.String addresses)
Encoding.JSON messages.public static RabbitMQSender.Builder newBuilder()
public final RabbitMQSender.Builder toBuilder()
public int messageMaxBytes()
messageMaxBytes in class Senderpublic int messageSizeInBytes(java.util.List<byte[]> encodedSpans)
messageSizeInBytes in class Senderpublic int messageSizeInBytes(int encodedSizeInBytes)
messageSizeInBytes in class Senderpublic zipkin2.Call<java.lang.Void> sendSpans(java.util.List<byte[]> encodedSpans)
public zipkin2.CheckResult check()
check in class zipkin2.Componentpublic final java.lang.String toString()
toString in class java.lang.Objectpublic void close()
throws java.io.IOException
close in class zipkin2.Componentjava.io.IOExceptionCopyright © 2016–2018 OpenZipkin. All rights reserved.