public class UdpSender extends ThriftSender
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_AGENT_UDP_COMPACT_PORT |
static java.lang.String |
DEFAULT_AGENT_UDP_HOST |
| Constructor and Description |
|---|
UdpSender()
This constructor expects Jaeger running running on "localhost"
and port 6831
|
UdpSender(java.lang.String host,
int port,
int maxPacketSize) |
| Modifier and Type | Method and Description |
|---|---|
int |
close() |
void |
send(io.jaegertracing.thriftjava.Process process,
java.util.List<io.jaegertracing.thriftjava.Span> spans) |
append, calculateProcessSize, calculateSpanSize, flushpublic static final java.lang.String DEFAULT_AGENT_UDP_HOST
public static final int DEFAULT_AGENT_UDP_COMPACT_PORT
public UdpSender()
public UdpSender(java.lang.String host,
int port,
int maxPacketSize)
host - hostport - portmaxPacketSize - if 0 it will use public void send(io.jaegertracing.thriftjava.Process process,
java.util.List<io.jaegertracing.thriftjava.Span> spans)
throws SenderException
send in class ThriftSenderSenderExceptionpublic int close()
throws SenderException
close in interface Senderclose in class ThriftSenderSenderException