use of com.uber.jaeger.exceptions.SenderException in project jaeger-client-java by jaegertracing.
the class UdpSenderTest method testAppendSpanTooLarge.
@Test(expected = SenderException.class)
public void testAppendSpanTooLarge() throws Exception {
Span jaegerSpan = (Span) tracer.buildSpan("raza").startManual();
String msg = "";
for (int i = 0; i < 10001; i++) {
msg += ".";
jaegerSpan.log(msg);
}
try {
sender.append(jaegerSpan);
} catch (SenderException e) {
assertEquals(e.getDroppedSpanCount(), 1);
throw e;
}
}
Aggregations