@Test public void end_WhenZipkinTracingIsReady_ShouldEmitServerSend() { when(requestUUID.isZipkinTracingReady()).thenReturn(true); when(requestUUID.getZipkinData()).thenReturn(zipkinData); victim.end(requestUUID); verify(zipkinEmitter).emitServerSend(zipkinData); }
@Override public void end(RequestUUID uuid) { ZipkinData zipkinData = getZipkinDataIfReady(uuid); if (zipkinData != null) { zipkinEmitter.emitServerSend(zipkinData); } }
ZipkinTracer extends AbstractTracer { @Override public void end(RequestUUID uuid) { ZipkinData zipkinData = getZipkinDataIfReady(uuid); if (zipkinData != null) { zipkinEmitter.emitServerSend(zipkinData); } } }
ZipkinTracer extends AbstractTracer { @Override public void end(RequestUUID uuid) { ZipkinData zipkinData = getZipkinDataIfReady(uuid); if (zipkinData != null) { zipkinEmitter.emitServerSend(zipkinData); } }  }
ZipkinTracer extends AbstractTracer { @Override public void end(RequestUUID uuid) { ZipkinData zipkinData = getZipkinDataIfReady(uuid); if (zipkinData != null) { zipkinEmitter.emitServerSend(zipkinData); } }  @Override void start(RequestUUID uuid, OperationKey operationKey); @Override void trace(RequestUUID uuid, String msg); @Override void trace(RequestUUID uuid, String msg, Object arg1); @Override void trace(RequestUUID uuid, String msg, Object arg1, Object arg2); @Override void trace(RequestUUID uuid, String msg, Object arg1, Object arg2, Object arg3); @Override void trace(RequestUUID uuid, String msg, Object... args); @Override void end(RequestUUID uuid); @Override void startCall(RequestUUID uuid, RequestUUID subUuid, OperationKey operationKey); @Override void endCall(RequestUUID uuid, RequestUUID subUuid, OperationKey operationKey); void setZipkinEmitter(@Nonnull ZipkinEmitter zipkinEmitter); }
ZipkinTracer extends AbstractTracer { @Override public void end(RequestUUID uuid) { ZipkinData zipkinData = getZipkinDataIfReady(uuid); if (zipkinData != null) { zipkinEmitter.emitServerSend(zipkinData); } }  @Override void start(RequestUUID uuid, OperationKey operationKey); @Override void trace(RequestUUID uuid, String msg); @Override void trace(RequestUUID uuid, String msg, Object arg1); @Override void trace(RequestUUID uuid, String msg, Object arg1, Object arg2); @Override void trace(RequestUUID uuid, String msg, Object arg1, Object arg2, Object arg3); @Override void trace(RequestUUID uuid, String msg, Object... args); @Override void end(RequestUUID uuid); @Override void startCall(RequestUUID uuid, RequestUUID subUuid, OperationKey operationKey); @Override void endCall(RequestUUID uuid, RequestUUID subUuid, OperationKey operationKey); void setZipkinEmitter(@Nonnull ZipkinEmitter zipkinEmitter);  }