@Test public void emitClientSend_ShouldEmitClientSendAnnotation() { Annotation annotation = new Annotation(timestampMicros, zipkinCoreConstants.CLIENT_SEND); annotation.setHost(endpoint); List<BinaryAnnotation> binaryAnnotations = Collections.emptyList(); Span expectedSpan = new Span(traceId, spanName, spanId, Lists.newArrayList(annotation), binaryAnnotations); expectedSpan.setParent_id(0); victim.emitClientSend(zipkinData); verify(zipkinSpanCollector).collect(expectedSpan); }
public void emitClientSend(@Nonnull ZipkinData zipkinData) { emitAnnotation(zipkinData, CLIENT_SEND); }
ZipkinEmitter implements InitializingBean { public void emitClientSend(@Nonnull ZipkinData zipkinData) { emitAnnotation(zipkinData, CLIENT_SEND); } }
ZipkinEmitter implements InitializingBean { public void emitClientSend(@Nonnull ZipkinData zipkinData) { emitAnnotation(zipkinData, CLIENT_SEND); } ZipkinEmitter(@Nonnull String serviceName, @Nonnull ZipkinSpanCollector zipkinSpanCollector,
                         @Nonnull Clock clock);  ZipkinEmitter(@Nonnull String serviceName, @Nonnull ZipkinSpanCollector zipkinSpanCollector,
                         @Nonnull Clock clock, int serviceIPv4); }
ZipkinEmitter implements InitializingBean { public void emitClientSend(@Nonnull ZipkinData zipkinData) { emitAnnotation(zipkinData, CLIENT_SEND); } ZipkinEmitter(@Nonnull String serviceName, @Nonnull ZipkinSpanCollector zipkinSpanCollector,
                         @Nonnull Clock clock);  ZipkinEmitter(@Nonnull String serviceName, @Nonnull ZipkinSpanCollector zipkinSpanCollector,
                         @Nonnull Clock clock, int serviceIPv4); void emitServerReceive(@Nonnull ZipkinData zipkinData); void emitServerSend(@Nonnull ZipkinData zipkinData); void emitClientSend(@Nonnull ZipkinData zipkinData); void emitClientReceive(@Nonnull ZipkinData zipkinData); @Nonnull ZipkinAnnotationsStore buildAnnotationsStore(@Nonnull ZipkinData zipkinData); void emitAnnotations(@Nonnull ZipkinAnnotationsStore zipkinAnnotationsStore); void emitAnnotation(@Nonnull ZipkinData zipkinData, @Nonnull String s); void emitAnnotation(@Nonnull ZipkinData zipkinData, @Nonnull String key, @Nonnull String value); void emitAnnotation(@Nonnull ZipkinData zipkinData, @Nonnull String key, short value); void emitAnnotation(@Nonnull ZipkinData zipkinData, @Nonnull String key, int value); void emitAnnotation(@Nonnull ZipkinData zipkinData, @Nonnull String key, long value); void emitAnnotation(@Nonnull ZipkinData zipkinData, @Nonnull String key, double value); void emitAnnotation(@Nonnull ZipkinData zipkinData, @Nonnull String key, boolean value); void emitAnnotation(@Nonnull ZipkinData zipkinData, @Nonnull String key, byte[] value); @Override void afterPropertiesSet(); @ManagedAttribute int getCurrentQueueSize(); @ManagedAttribute int getRemainingQueueCapacity(); }
ZipkinEmitter implements InitializingBean { public void emitClientSend(@Nonnull ZipkinData zipkinData) { emitAnnotation(zipkinData, CLIENT_SEND); } ZipkinEmitter(@Nonnull String serviceName, @Nonnull ZipkinSpanCollector zipkinSpanCollector,
                         @Nonnull Clock clock);  ZipkinEmitter(@Nonnull String serviceName, @Nonnull ZipkinSpanCollector zipkinSpanCollector,
                         @Nonnull Clock clock, int serviceIPv4); void emitServerReceive(@Nonnull ZipkinData zipkinData); void emitServerSend(@Nonnull ZipkinData zipkinData); void emitClientSend(@Nonnull ZipkinData zipkinData); void emitClientReceive(@Nonnull ZipkinData zipkinData); @Nonnull ZipkinAnnotationsStore buildAnnotationsStore(@Nonnull ZipkinData zipkinData); void emitAnnotations(@Nonnull ZipkinAnnotationsStore zipkinAnnotationsStore); void emitAnnotation(@Nonnull ZipkinData zipkinData, @Nonnull String s); void emitAnnotation(@Nonnull ZipkinData zipkinData, @Nonnull String key, @Nonnull String value); void emitAnnotation(@Nonnull ZipkinData zipkinData, @Nonnull String key, short value); void emitAnnotation(@Nonnull ZipkinData zipkinData, @Nonnull String key, int value); void emitAnnotation(@Nonnull ZipkinData zipkinData, @Nonnull String key, long value); void emitAnnotation(@Nonnull ZipkinData zipkinData, @Nonnull String key, double value); void emitAnnotation(@Nonnull ZipkinData zipkinData, @Nonnull String key, boolean value); void emitAnnotation(@Nonnull ZipkinData zipkinData, @Nonnull String key, byte[] value); @Override void afterPropertiesSet(); @ManagedAttribute int getCurrentQueueSize(); @ManagedAttribute int getRemainingQueueCapacity();  }