[#128] Added spans for messaging

fixes #128
This commit is contained in:
Marcin Grzejszczak
2016-01-22 23:03:44 +01:00
committed by Marcin Grzejszczak
parent 4dca83f248
commit 0ff1cf92bd
5 changed files with 73 additions and 32 deletions

View File

@@ -62,12 +62,12 @@ public class ZipkinStreamTests extends AbstractIntegrationTest {
@Test
public void should_propagate_spans_to_zipkin() {
Span span = Span.builder().traceId(traceId).spanId(spanId).name("test").build();
Span span = Span.builder().traceId(this.traceId).spanId(this.spanId).name("test").build();
span.tag(getRequiredBinaryAnnotationName(), "10131");
this.input.send(messageWithSpan(span));
await().until(allSpansWereRegisteredInZipkinWithTraceIdEqualTo(traceId));
await().until(allSpansWereRegisteredInZipkinWithTraceIdEqualTo(this.traceId));
}
private Message<Spans> messageWithSpan(Span span) {