UdpSender extends ThriftSender { @Override public void send(Process process, List<io.jaegertracing.thriftjava.Span> spans) throws SenderException { try { getAgentClient().emitBatch(new Batch(process, spans)); } catch (Exception e) { throw new SenderException(String.format("Could not send %d spans", spans.size()), e, spans.size()); } } UdpSender();  UdpSender(String host, int port, int maxPacketSize); @Override void send(Process process, List<io.jaegertracing.thriftjava.Span> spans); @Override int close(); static final String DEFAULT_AGENT_UDP_HOST; static final int DEFAULT_AGENT_UDP_COMPACT_PORT; }
@Test(expected = SenderException.class) public void senderFail() throws Exception { sender.send(null, Collections.emptyList()); }